Zack Weinberg wrote: > On Fri, Sep 11, 2009 at 8:32 AM, Lapo Luchini <l...@lapo.it> 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 - http://lapo.it/ “We do what we must because we can.” (videogame "Portal", 2007)
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Monotone-devel mailing list Monotone-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/monotone-devel