diff options
author | Tor Lillqvist <tml@iki.fi> | 1999-10-31 12:15:34 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 1999-10-31 12:15:34 +0000 |
commit | 30cc3ed1fe251c3b5ee477152645884849037af0 (patch) | |
tree | 57cc5d0d64b525b0eba3b8a942cfbf829534effb /glib.h | |
parent | a2760140c83d32887a0f3f16cd2a49fd2a3adb59 (diff) |
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.
Diffstat (limited to 'glib.h')
-rw-r--r-- | glib.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -2875,6 +2875,15 @@ DIR* gwin_opendir (const gchar *dirname); struct dirent* gwin_readdir (DIR *dir); void gwin_rewinddir (DIR *dir); gint gwin_closedir (DIR *dir); + +/* The MS setlocale uses locale names of the form "English_United + * States.1252" etc. We want the Unixish standard form "en", "zh_TW" + * etc. This function gets the current thread locale from Windows and + * returns it as a string of the above form for use in forming file + * names etc. The returned string should be deallocated with g_free(). + */ +gchar * gwin_getlocale (void); + #endif /* G_OS_WIN32 */ |