mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 14:36:16 +01:00
Fix up to correspond to configure.in checks.
Mon Jul 3 17:58:02 2000 Owen Taylor <otaylor@redhat.com> * gutf8.c (g_utf8_get_charset_internal): Fix up to correspond to configure.in checks.
This commit is contained in:
parent
8384a1342e
commit
9608683328
@ -1,3 +1,8 @@
|
||||
Mon Jul 3 17:58:02 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gutf8.c (g_utf8_get_charset_internal): Fix up
|
||||
to correspond to configure.in checks.
|
||||
|
||||
Mon Jul 3 17:18:19 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib.h: Comment g_get_codeset() out of the header file
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Jul 3 17:58:02 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gutf8.c (g_utf8_get_charset_internal): Fix up
|
||||
to correspond to configure.in checks.
|
||||
|
||||
Mon Jul 3 17:18:19 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib.h: Comment g_get_codeset() out of the header file
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Jul 3 17:58:02 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gutf8.c (g_utf8_get_charset_internal): Fix up
|
||||
to correspond to configure.in checks.
|
||||
|
||||
Mon Jul 3 17:18:19 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib.h: Comment g_get_codeset() out of the header file
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Jul 3 17:58:02 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gutf8.c (g_utf8_get_charset_internal): Fix up
|
||||
to correspond to configure.in checks.
|
||||
|
||||
Mon Jul 3 17:18:19 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib.h: Comment g_get_codeset() out of the header file
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Jul 3 17:58:02 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gutf8.c (g_utf8_get_charset_internal): Fix up
|
||||
to correspond to configure.in checks.
|
||||
|
||||
Mon Jul 3 17:18:19 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib.h: Comment g_get_codeset() out of the header file
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Jul 3 17:58:02 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gutf8.c (g_utf8_get_charset_internal): Fix up
|
||||
to correspond to configure.in checks.
|
||||
|
||||
Mon Jul 3 17:18:19 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib.h: Comment g_get_codeset() out of the header file
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Jul 3 17:58:02 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gutf8.c (g_utf8_get_charset_internal): Fix up
|
||||
to correspond to configure.in checks.
|
||||
|
||||
Mon Jul 3 17:18:19 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib.h: Comment g_get_codeset() out of the header file
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Jul 3 17:58:02 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gutf8.c (g_utf8_get_charset_internal): Fix up
|
||||
to correspond to configure.in checks.
|
||||
|
||||
Mon Jul 3 17:18:19 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib.h: Comment g_get_codeset() out of the header file
|
||||
|
12
glib/gutf8.c
12
glib/gutf8.c
@ -22,7 +22,7 @@
|
||||
#include <config.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_LANGINFO_H
|
||||
#ifdef HAVE_CODESET
|
||||
#include <langinfo.h>
|
||||
#endif
|
||||
#include <string.h>
|
||||
@ -297,8 +297,8 @@ g_utf8_get_charset_internal (char **a)
|
||||
if (charset && strstr (charset, "UTF-8"))
|
||||
return TRUE;
|
||||
|
||||
#ifdef _NL_CTYPE_CODESET_NAME
|
||||
charset = nl_langinfo (_NL_CTYPE_CODESET_NAME);
|
||||
#ifdef HAVE_CODESET
|
||||
charset = nl_langinfo(CODESET);
|
||||
if (charset)
|
||||
{
|
||||
if (a && ! *a)
|
||||
@ -306,8 +306,10 @@ g_utf8_get_charset_internal (char **a)
|
||||
if (strcmp (charset, "UTF-8") == 0)
|
||||
return TRUE;
|
||||
}
|
||||
#elif CODESET
|
||||
charset = nl_langinfo(CODESET);
|
||||
#endif
|
||||
|
||||
#if 0 /* #ifdef _NL_CTYPE_CODESET_NAME */
|
||||
charset = nl_langinfo (_NL_CTYPE_CODESET_NAME);
|
||||
if (charset)
|
||||
{
|
||||
if (a && ! *a)
|
||||
|
12
gutf8.c
12
gutf8.c
@ -22,7 +22,7 @@
|
||||
#include <config.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_LANGINFO_H
|
||||
#ifdef HAVE_CODESET
|
||||
#include <langinfo.h>
|
||||
#endif
|
||||
#include <string.h>
|
||||
@ -297,8 +297,8 @@ g_utf8_get_charset_internal (char **a)
|
||||
if (charset && strstr (charset, "UTF-8"))
|
||||
return TRUE;
|
||||
|
||||
#ifdef _NL_CTYPE_CODESET_NAME
|
||||
charset = nl_langinfo (_NL_CTYPE_CODESET_NAME);
|
||||
#ifdef HAVE_CODESET
|
||||
charset = nl_langinfo(CODESET);
|
||||
if (charset)
|
||||
{
|
||||
if (a && ! *a)
|
||||
@ -306,8 +306,10 @@ g_utf8_get_charset_internal (char **a)
|
||||
if (strcmp (charset, "UTF-8") == 0)
|
||||
return TRUE;
|
||||
}
|
||||
#elif CODESET
|
||||
charset = nl_langinfo(CODESET);
|
||||
#endif
|
||||
|
||||
#if 0 /* #ifdef _NL_CTYPE_CODESET_NAME */
|
||||
charset = nl_langinfo (_NL_CTYPE_CODESET_NAME);
|
||||
if (charset)
|
||||
{
|
||||
if (a && ! *a)
|
||||
|
Loading…
Reference in New Issue
Block a user