lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 5/31/09, Bulat Ziganshin <bulat.ziganshin@gmail.com> wrote:
> Hello Lua,
>
> i use UTF8 encoding for string data and so my users editing scripts
> should use UTF8 editors. the most well-known windows one, Notepad,
> adds BOM to the beginning of UTF8-encoded files
>
> may be Lua interpreter should ignore BOM at beginning of file/string
> it executes?
>
> --
> Best regards,
>  Bulat                          mailto:Bulat.Ziganshin@gmail.com
>
>

I've gone and hacked the bit in the lua code that is used to load code
to ignore the silly BOM that M$ insists in introducing into text
files. I am far away from that code just now, but if you want me to
send you a patch some time in 10 days or so, drop me a note.

Robby