X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Funicodeio.c;h=a146569e47eaf41ded178751a5a85e62a4b813cc;hb=a76a349e949dfad5716eb3893052070b770e949f;hp=049b9afd0ae87039fe9dfa0fa3b44a7dc09eef15;hpb=27dc63a511abd7ff4e4aa737e02d382132d59bda;p=gnulib.git diff --git a/lib/unicodeio.c b/lib/unicodeio.c index 049b9afd0..a146569e4 100644 --- a/lib/unicodeio.c +++ b/lib/unicodeio.c @@ -20,15 +20,14 @@ /* Written by Bruno Haible . */ /* Note: This file requires the locale_charset() function. See in - libiconv-1.7/libcharset/INTEGRATE for how to obtain it. */ + libiconv-1.8/libcharset/INTEGRATE for how to obtain it. */ #ifdef HAVE_CONFIG_H # include #endif -#if HAVE_STDDEF_H -# include -#endif +/* Specification. */ +#include "unicodeio.h" #include #if HAVE_STRING_H @@ -48,16 +47,11 @@ extern int errno; #include -#if ENABLE_NLS -# include -#else -# define gettext(Text) Text -#endif -#define _(Text) gettext (Text) -#define N_(Text) Text +#include "gettext.h" +#define _(msgid) gettext (msgid) +#define N_(msgid) msgid -/* Specification. */ -#include "unicodeio.h" +#include "localcharset.h" /* When we pass a Unicode character to iconv(), we must pass it in a suitable encoding. The standardized Unicode encodings are @@ -135,7 +129,6 @@ unicode_to_mb (unsigned int code, if (!initialized) { - extern const char *locale_charset PARAMS ((void)); const char *charset = locale_charset (); is_utf8 = !strcmp (charset, UTF8_NAME);