<div dir="ltr"><div><div><div><div><div><div>To help reproduce the problem, I altered the program a bit so that it does not look for a folder containing CJK path.  To reproduce the problem:<br><br></div>1) compile and run this program under Linux (I am running Ubuntu 13.04 amd64).<br>

</div>2) Click the "Write" button and choose the included "test.txt" file.<br></div>3) Click the "Read" button, the program will crash.<br><br></div>Note: the test.txt file contains two lines, the program only read the first line, if that line contains CJK, it will crash.<br>

<br></div>Thanks,<br></div>Shannon<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/8/14 Xiangrong Fang <span dir="ltr"><<a href="mailto:xrfang@gmail.com" target="_blank">xrfang@gmail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi All,<br><br></div>Could anyone take a look at the problem?  I would like to confirm if this is my problem or a bug in lazarus / fpc.<br>

<br></div><div>Thanks,<br></div><div>Shannon<br></div></div><div class="HOEnZb"><div class="h5">
<div class="gmail_extra"><br><br><div class="gmail_quote">2013/8/12 Xiangrong Fang <span dir="ltr"><<a href="mailto:xrfang@gmail.com" target="_blank">xrfang@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">There is no backtrace at all, the only info I get when starting from command line is:<br><br>xrfang@fxrmm:~/Desktop/testutf8$ ./project1 <br>TApplication.HandleException Access violation<br>



  Stack trace:<br>  $00007F2ACBF9DBD0<div><br><br>Please provide a backtrace.<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
What is r?<br></blockquote><div><br></div></div><div>r is a TRegistry object, please see attached source code. <br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



What compiler version?<br></blockquote><div><br>FPC 2.6.2, Lazarus 1.0.10<br> </div>I suspect this is a bug in related library code, because even if the result is not correct, it should not crash.  Note that this error ONLY occur when I choose a directory with CJK character in its path.<br>



</div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>