mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-03 04:09:20 +02:00
Updates.
Fri Mar 8 00:15:29 2002 Owen Taylor <otaylor@redhat.com> * README.in: Updates. * README.in: Add warnings about current encoding problems with .po files and error logging functions. * configure.in: Check for bind_textdomain_codeset(). * glib/gutils.c (_glib_gettext): Call bind_textdomain_codeset, if present. * INSTALL.in: Some updates. * AUTHORS: Updates. * Makefile.am (EXTRA_DIST): Remove TODO.xml from EXTRA_DIST. * docs/Makefile.am (EXTRA_DIST): Remove Changes-2.0.txt from EXTRA_DIST.
This commit is contained in:
@@ -80,6 +80,10 @@
|
||||
#include <langinfo.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_BIND_TEXTDOMAIN_CODESET
|
||||
#include <libintl.h>
|
||||
#endif
|
||||
|
||||
const guint glib_major_version = GLIB_MAJOR_VERSION;
|
||||
const guint glib_minor_version = GLIB_MINOR_VERSION;
|
||||
const guint glib_micro_version = GLIB_MICRO_VERSION;
|
||||
@@ -1090,6 +1094,9 @@ _glib_gettext (const gchar *str)
|
||||
if (!_glib_gettext_initialized)
|
||||
{
|
||||
bindtextdomain(GETTEXT_PACKAGE, GLIB_LOCALE_DIR);
|
||||
# ifdef HAVE_BIND_TEXTDOMAIN_CODESET
|
||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||
# endif
|
||||
_glib_gettext_initialized = TRUE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user