Don't use a cache of variable name to value mappings on Win32, as that

2003-08-10  Tor Lillqvist  <tml@iki.fi>

	* glib/gutils.c (g_getenv): Don't use a cache of variable name to
	value mappings on Win32, as that breaks g_setenv() and
	g_unsetenv(). Only call ExpandEnvironmentStrings() if necessary,
	and in that case return a quarkified string. It is still
	questionable how necessary expanding embedded environment variable
	references is. Possibly the whole Win32-specific g_getenv()
	implementation could be removed. (#119520)
This commit is contained in:
Tor Lillqvist
2003-08-10 08:04:10 +00:00
committed by Tor Lillqvist
parent 6fb380e374
commit 6489e6a5d5
7 changed files with 88 additions and 53 deletions

View File

@@ -1,3 +1,13 @@
2003-08-10 Tor Lillqvist <tml@iki.fi>
* glib/gutils.c (g_getenv): Don't use a cache of variable name to
value mappings on Win32, as that breaks g_setenv() and
g_unsetenv(). Only call ExpandEnvironmentStrings() if necessary,
and in that case return a quarkified string. It is still
questionable how necessary expanding embedded environment variable
references is. Possibly the whole Win32-specific g_getenv()
implementation could be removed. (#119520)
2003-08-08 Tor Lillqvist <tml@iki.fi>
* glib/glib.def: Add g_once_impl.