On Thu, Jun 10, 2010 at 05:58:31PM +0200, Elie Roux wrote:
taco a écrit :
don't use an empty second argument to setlocale(). If you already know that you want UTF-8, set it to a suitable value instead.
The problem is that, IIUC, it's weird to put fr_FR.UTF-8 as a locale, as it's specific to my system... But I discovered that
os.setenv("LC_CTYPE", nil) os.execute("myprogram") os.setenv("LC_CTYPE", "C")
does the trick... with this it's the LANG environment variable (fr_FR.UTF-8) that will be set as LC_CTYPE.
Setting setlocale (LC_CTYPE, "UTF-8"); in tetest.c does not solve the problem (strangely...). Is there another way?
UTF-8 is not a locale, en_US.UTF-8 etc. are. -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer