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 15:51:15 +0000
On 31/12/04 16:15:53, Tor Lillqvist wrote:
Yup, that's what the code I have been tinkering with for some hours
now does... First call _wputenv(), to update MSVCRT's environ (and
_wenviron). _wputenv() also calls SetEnvironmentVariableW() but I
don't trust it necessarily gets it right (reading the C runtime's
source to figure out what happens is rather hairy with all the
ifdefs), so then g_setenv() calls SetEnvironmentVariableW() itself.
Might have known you'd be way ahead of me :-)
Nice one, Tor.
Ali.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]