<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 19/02/2015 13:51, FreeMan wrote:<br>
</div>
<blockquote cite="mid:54E5EA5F.9070703@delphiturkiye.com"
type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
I found problem. not string show problem. My string variable get
value from My defined function, I didn't notice that, this my
mistake, sorry for this.<br>
Problem is:<br>
..<br>
Result := fpReadLink(AFilename); <br>
..<br>
/freepascal/3.1.1/rtl/unix/bunxovlh.inc<br>
Function fpReadLink(const Name: RawByteString): RawByteString;<br>
<br>
result is string. I tested it like this too "StrVariable :=
fpReadLink(AFilename); " <br>
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<div class="delphi source-delphi"><span class="kw1"></span>added
to result "^char($000000010E3C1358)" this strings, number
change.<br>
<pre class="de1"><span class="kw1"></span><span class="kw1">type</span>
RawByteString <span class="sy3">=</span> <span class="kw1">type</span> <span class="kw4">AnsiString</span><span class="br0">(</span>CP_NONE<span class="br0">)</span><span class="sy1">;</span></pre>
</div>
How to do?
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<span id="result_box" class="short_text" lang="en"><span
class="hps">I'm</span> <span class="hps">confused little bit.<br>
</span></span><br>
</blockquote>
The debugger has no support for the codepage. It displays all
strings, as if they where utf8. If your string has another encoding
then this will not work.<br>
<br>
There is no roadmap on this yet. Also due te restrictions in the
debug info this may not be possible in the gdb based debugger. <br>
It is currently not possible for the debugger to tell the difference
between pchar and ansistring (the debug info created by fpc in stabs
and drarf2 is the same). This means the debugger can not do anything
for strings, because if it was a pchar things would go terribly
wrong.<br>
<br>
This changes with dwarf3 (though not if gdb is in play / besides gdb
crashes on dwarf3).<br>
<br>
So a fix for this will likely only be in fpdebug. However fpdebug
needs a lot of other fixes. So this will not be soon.<br>
<br>
Maybe it will be possible to add an option to the watch properties
(but the hint is not fixable) / Yet again matter of time available.<br>
</body>
</html>