lua-users home
lua-l archive

Re: Lua String Comparison Problem

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


Hi,
I have a strange string comparison problem with Lua 5.1.4 embedded in my
application:
 'W' < 'w' returns false
 string.byte('W') < string.byte('w') returns true
In the official 5.1.4 binaries for both Windows and Linux:
 'W' < 'w' returns true
 string.byte('W') < string.byte('w') returns true
Is there something I'm missing in my luaconf.h?
Does your application set a new locale?
It is a GTK+ application so GTK could be setting the locale. I do not do so explicitly.
mitchell

AltStyle によって変換されたページ (->オリジナル) /