<div class="gmail_quote">On Sun, Mar 28, 2010 at 10:41 PM, Juan Jose Garcia-Ripoll <span dir="ltr"><<a href="mailto:juanjose.garciaripoll@googlemail.com">juanjose.garciaripoll@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote">2010/3/19 Choongyeol Yoo <span dir="ltr"><<a href="mailto:spcvar@gmail.com" target="_blank">spcvar@gmail.com</a>></span><div class="im"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>Hi.</div>
<div>I made ECL 10.3.1 installed on windows xp and linux.</div>
<div>To test CJK characters with ECL, I tried simple test like  <strong><font color="#ff0000"><em>(princ "ひらかな").</em></font></strong></div>
<div>On linux build, simply it succeeded.</div>
<div>But, on windows build, built with msvc 2008, unicode enabled, <strong><font color="#ff0000"><em> <font color="#000000">it was failed as shown below.</font></em></font></strong></div>
<div>Any solution or suggestion needed to the error.</div>
<div>Thanks for this great implementation.</div></blockquote><div><br></div></div><div>I have identified a couple of problems associated to Unicode, but I can not debug completely the one you mention.</div></div></blockquote>
</div><div><br></div>I have been doing some additional experiments. The following program seems to work, both when loaded with (load "foo.lsp" :external-format :utf-8) and when entered as input as in "type foo.lsp | ecl.exe"<br clear="all">
<div><br></div><div>;;; foo.lsp</div><div><br></div><div>(ext::stream-external-format-set *standard-input* :utf-8)<br>(ext::stream-external-format-set *standard-output* :utf-8)<div>(print (length "ひらかな"))</div><div>
(print (char-code #\ひ))</div><div>(print (char-code #\ら))</div><div>(print (char-code #\か))</div><div>(print (char-code #\な))</div><div><br></div><div>(loop for i from 0 to 3</div><div>      do (print (char-code (aref "ひらかな" i))))</div>
<div><br></div><div>(print "TEST" *standard-output*)</div><div>(princ "ひらかな" *standard-output*)</div><div>(quit)</div><div><br></div>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br>
<a href="http://tream.dreamhosters.com">http://tream.dreamhosters.com</a><br>
</div>