[Top][All Lists]

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

Re: [Monotone-devel] Cygwin-1.7 tests [Was: Time for a release]

From: Lapo Luchini
Subject: Re: [Monotone-devel] Cygwin-1.7 tests [Was: Time for a release]
Date: Fri, 11 Sep 2009 17:58:52 +0200
User-agent: Thunderbird (X11/20090831)

Zack Weinberg wrote:
> On Fri, Sep 11, 2009 at 8:32 AM, Lapo Luchini <address@hidden> wrote:
>> --- testlib.lua  a019d00ccc1a886e692abd143d8d62416d7dbf8e
>> +++ testlib.lua  0c442921922f2a426334d2c38488f2acace48422
>> +  os.setlocale("C");
> So right above this, we run through a big list of LC_ environment
> variables and set them all to "C".  Why is that not good enough?

Not really, because that doesn't change the language the *current*
process was started with, only the environment of child processes.

This is because in order to simulate "sane" usage of filenames it does
translate from user charset to UTF-16, but checks the charset only on
the start of the process... and, some mailing list messages seems to
say, it also intercepts any setlocale call to change it on-the-fly.

Except I couldn't solve it that way, so either lua's os.setlocale does
not call setlocale or that "intercept setlocale" feature was not coded
in the end...

Lapo Luchini -

“We do what we must because we can.” (videogame "Portal", 2007)

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]