lua-users home
lua-l archive

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

Mike Pall wrote:
The recipe for portability is to ignore the locale and do
everything in UTF-8 internally (e.g. for string handling). Only
convert at the boundaries to/from the 'widest' API available
(e.g. for file I/O or GUIs).

I have used this scheme and it works well for file names. I
used MultiByteToWideChar() just prior to file name usage.
The only place it presents some overhead is in directory iterators.