summaryrefslogtreecommitdiff
path: root/extra/locale/gen_locale.c
diff options
context:
space:
mode:
Diffstat (limited to 'extra/locale/gen_locale.c')
-rw-r--r--extra/locale/gen_locale.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/extra/locale/gen_locale.c b/extra/locale/gen_locale.c
index 047b843dc..268c3d61b 100644
--- a/extra/locale/gen_locale.c
+++ b/extra/locale/gen_locale.c
@@ -10,7 +10,6 @@
#include <nl_types.h>
#include <stdint.h>
-#define __CTYPE_HAS_8_BIT_LOCALES
#include "c8tables.h"
@@ -101,6 +100,9 @@ static void do_locale_names(void)
fprintf(ofp, "static const unsigned char __locales[%d];\n", (3 + CATEGORIES));
fprintf(ofp, "static const unsigned char __locale_names5[5];\n");
} else {
+ if (default_utf8) {
+ fprintf(ofp, "#define __CTYPE_HAS_UTF_8_LOCALES\t\t\t1\n");
+ }
fprintf(ofp, "#define CATEGORIES\t\t\t%d\n", CATEGORIES);
fprintf(ofp, "#define WIDTH_LOCALES\t\t\t%d\n", 3+CATEGORIES);
fprintf(ofp, "#define NUM_LOCALES\t\t\t%d\n", num_locales);