[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: strcoll in lvm.c
- From: "Daniel Collins" <daniel.collins@...>
- Date: Mon, 1 May 2006 16:56:09 +0930
As part of porting Lua to run on some (mostly korean) mobile phone
platforms (WIPI, GIGA, GPANG and BREW) I need to tease apart the
dependencies on the C standard library, since this is not always present
on some hardware. So far this has been easy.
However strcoll is used on line 230 of lvm.c. Does anyone know why
strcoll was used here instead of strcmp. In my context, Lua wont know
anything about locales, so I assume that replacing strcoll with my
replacement for strcmp will work, but I just wanted to check in case
there is some gotcha I dont know about.
For what its worth, my usage is localisable, with english and korean
versions. But all this is handled outside of Lua using a custom string
database system. Lua scripts will simply refer to strings by an ID (eg:
OPTIONS_SET_VOLUME).
thanks,
DC