Don't crash if removing a nonexistent value.
authorTor Lillqvist <tml@iki.fi>
Sun, 31 Oct 1999 12:15:34 +0000 (12:15 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Sun, 31 Oct 1999 12:15:34 +0000 (12:15 +0000)
commit30cc3ed1fe251c3b5ee477152645884849037af0
tree57cc5d0d64b525b0eba3b8a942cfbf829534effb
parenta2760140c83d32887a0f3f16cd2a49fd2a3adb59
Don't crash if removing a nonexistent value.

1999-10-31  Tor Lillqvist  <tml@iki.fi>

* gcache.c (g_cache_remove): Don't crash if removing a nonexistent
value.

* gutils.c (gwin_getlocale): New Win32-specific function, returns
a Unixish current locale string (en, zh_TW etc).

* glib.h: Declare it.

* glib.def: Export it.

* testglib.c: Test it.

* gmessages.c (Win32: ensure_stdout_valid): Some improvements,
make sure we don't call AllocConsole several times, which I think
has happened.
22 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gcache.c
glib.def
glib.h
glib/gcache.c
glib/glib.def
glib/glib.h
glib/gmessages.c
glib/gutils.c
gmessages.c
gmodule/ChangeLog
gmodule/gmodule.h
gutils.c
testglib.c
tests/testglib.c