Re: g_getenv() encoding on Windows
- From: "J. Ali Harlow" <ali juiblex co uk>
- To: Tor Lillqvist <tml iki fi>
- Cc: gtk-devel-list gnome org
- Subject: Re: g_getenv() encoding on Windows
- Date: Fri, 31 Dec 2004 13:00:33 +0000
On 31/12/04 12:00:38, Tor Lillqvist wrote:
Anybody object to this change?
I've got no objection from an ABI point of view since I haven't built
2.6.0 yet anyway.
I'd like to ask more about the motivation, however. As I undertand it,
the point of switching to UTF-8 for filenames is that MS-Windows stores
these in unicode internally rather than in the system codepage so you
can run into problems if the filename can't be encoded in the system
codepage.
Is the same true for environment variables? I read what appears to be
the relevant documentation in msdn:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt__environ.2c_._wenviron.asp
but I wasn't much the wiser :-)
If environment variables are stored in unicode, then I agree that we
need to use UTF-8, but if they are stored in the system codepage then
I'd be more hesitant.
Cheers,
Ali.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]