One tweak required: include <langinfo.h>  unconditionally:

This cleanup is possible too. Also, the unconditional inclusion of langinfo.h should be sent to glibc as well.

Before proceeding, however, I'm curious whether using nl_langinfo (CODESET) is less precise than locale_charset on some platform. Bruno?

Paolo

2010-01-05  Paolo Bonzini  <bonz...@gnu.org>

        * lib/regex_internal.h: Remove localcharset.h inclusion.
        * modules/regex: Remove localcharset module.

diff --git a/lib/regex_internal.h b/lib/regex_internal.h
index f5c3125..125bfed 100644
--- a/lib/regex_internal.h
+++ b/lib/regex_internal.h
@@ -29,9 +29,6 @@
 #include <string.h>

 #include <langinfo.h>
-#ifndef _LIBC
-# include "localcharset.h"
-#endif
 #if defined HAVE_LOCALE_H || defined _LIBC
 # include <locale.h>
 #endif
diff --git a/modules/regex b/modules/regex
index f516406..9b73537 100644
--- a/modules/regex
+++ b/modules/regex
@@ -16,7 +16,6 @@ alloca
 btowc
 extensions
 gettext-h
-localcharset
 malloc
 memcmp
 memmove


Reply via email to