[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] locale_charset() declaration
From: |
Bruno Haible |
Subject: |
[Bug-gnulib] locale_charset() declaration |
Date: |
Tue, 31 Dec 2002 14:28:58 +0100 (CET) |
Hi,
I've added this patch. It adds an include file for my 'localcharset'
module.
Users of localcharset.c should consider to #include "localcharset.h".
2002-12-23 Bruno Haible <address@hidden>
* localcharset.h: New file.
* localcharset.c: Include it.
* unicodeio.c: Likewise.
diff -r -c3 gnulib-cvs/lib/localcharset.c gnulib/lib/localcharset.c
*** gnulib-cvs/lib/localcharset.c 2002-11-04 14:50:20.000000000 +0100
--- gnulib/lib/localcharset.c 2002-12-23 02:02:32.000000000 +0100
***************
*** 23,28 ****
--- 23,31 ----
# include <config.h>
#endif
+ /* Specification. */
+ #include "localcharset.h"
+
#if HAVE_STDDEF_H
# include <stddef.h>
#endif
Nur in gnulib/lib: localcharset.h.
diff -r -c3 gnulib-cvs/lib/unicodeio.c gnulib/lib/unicodeio.c
*** gnulib-cvs/lib/unicodeio.c 2002-12-24 19:06:10.000000000 +0100
--- gnulib/lib/unicodeio.c 2002-12-23 01:59:28.000000000 +0100
***************
*** 51,56 ****
--- 51,58 ----
#define _(msgid) gettext (msgid)
#define N_(msgid) msgid
+ #include "localcharset.h"
+
/* When we pass a Unicode character to iconv(), we must pass it in a
suitable encoding. The standardized Unicode encodings are
UTF-8, UCS-2, UCS-4, UTF-16, UTF-16BE, UTF-16LE, UTF-7.
***************
*** 127,133 ****
if (!initialized)
{
- extern const char *locale_charset PARAMS ((void));
const char *charset = locale_charset ();
is_utf8 = !strcmp (charset, UTF8_NAME);
--- 129,134 ----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gnulib] locale_charset() declaration,
Bruno Haible <=