[Ecls-list] Hi Juanjo,Chinese words work in windows console now!

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Wed May 30 14:20:23 UTC 2012


On Sat, May 26, 2012 at 10:36 AM, cm <xiao.ao.jiang.hu.cm at gmail.com> wrote:
>
> I save the file with windows notepad with default code. And load file into
> ecl with :windows-cp936, it works fine!
> but when I save the file with utf-8 format in notepad, and load file with
> :utf-8, it report error:
>

Problem identified. Notepad inserts a BOM character (0xFEFF) at the
beginning of the file. This is not standard, but just something that
Windows uses for UTF-8 and which is discouraged in Unix. I cannot cope with
this at the level of encoding, because that would break Unix applications
and would make ECL work differently on Windows and on Unix. Instead I have
hacked a simpler solution: BOM is interpreted by the Lisp reader as a
whitespace.

I will upload a patch tonight or tomorrow. Thanks for providing me with the
three test cases. They are really useful!

Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20120530/2cc04b2d/attachment.html>


More information about the ecl-devel mailing list