about summary refs log tree commit diff
path: root/locale/C-numeric.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/C-numeric.c')
-rw-r--r--locale/C-numeric.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/locale/C-numeric.c b/locale/C-numeric.c
index 6298f7000f..9a981f195a 100644
--- a/locale/C-numeric.c
+++ b/locale/C-numeric.c
@@ -19,6 +19,14 @@ Boston, MA 02111-1307, USA.  */
 
 #include "localeinfo.h"
 
+/* This table's entries are taken from POSIX.2 Table 2-10
+   ``LC_NUMERIC Category Definition in the POSIX Locale''.  */
+#ifdef __CHAR_UNSIGNED__
+static const char not_available[] = "\377";
+#else
+static const char not_available[] = "\177";
+#endif
+
 const struct locale_data _nl_C_LC_NUMERIC =
 {
   _nl_C_name,
@@ -27,6 +35,6 @@ const struct locale_data _nl_C_LC_NUMERIC =
   {
     { string: "." },
     { string: "" },
-    { string: "\177" }
+    { string: not_available }
   }
 };