lua-users home
lua-l archive

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


Hello Thomas,

Wednesday, July 22, 2009, 6:55:56 PM, you wrote:

> Has anybody come up with solutions?  The only reasonably solution I
> can think of is to have 'replacement' APIs at boundaries that
> send/receive certain text from the OS...

i don't understand that you mean by "replacement APIs". i think the
best way is to provide C low-level functions that implements open,
popen, getenv functionality using utf8-encoded strings (internally
converting them to/from utf-16) and use in io/os packages these
functions instead of usual ones

just adding encoding/decoding layer is probably impossible since
open/popen/... on windows uses OEM/ANSI encoding by default, and
encoding from utf-8 to oem/ansi is lossy


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin@gmail.com