[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#17056: dfa.c patch for systems with no locale support
From: |
Aharon Robbins |
Subject: |
bug#17056: dfa.c patch for systems with no locale support |
Date: |
Fri, 21 Mar 2014 13:40:17 +0200 |
User-agent: |
Heirloom mailx 12.5 6/20/10 |
Hi.
This turned up in testing on DJGPP. Thanks,
Arnold
--------------------------
diff --git a/dfa.c b/dfa.c
index 8771bbe..813c239 100644
--- a/dfa.c
+++ b/dfa.c
@@ -820,9 +820,13 @@ using_simple_locale (void)
static int unibyte_c = -1;
if (unibyte_c < 0)
{
+#ifdef LC_ALL
char *locale = setlocale (LC_ALL, NULL);
unibyte_c = (locale && (STREQ (locale, "C")
|| STREQ (locale, "POSIX")));
+#else
+ unibyte_c = 1;
+#endif
}
return unibyte_c;
}
- bug#17056: dfa.c patch for systems with no locale support,
Aharon Robbins <=
- bug#17056: dfa.c patch for systems with no locale support, Paul Eggert, 2014/03/21
- bug#17056: dfa.c patch for systems with no locale support, Aharon Robbins, 2014/03/23
- bug#17056: dfa.c patch for systems with no locale support, Paul Eggert, 2014/03/23
- bug#17056: dfa.c patch for systems with no locale support, Aharon Robbins, 2014/03/26
- bug#17056: dfa.c patch for systems with no locale support, Paul Eggert, 2014/03/27
- bug#17056: dfa.c patch for systems with no locale support, Aharon Robbins, 2014/03/27
- bug#17056: dfa.c patch for systems with no locale support, Paul Eggert, 2014/03/27
- bug#17056: dfa.c patch for systems with no locale support, Eric Blake, 2014/03/27
- bug#17056: dfa.c patch for systems with no locale support, Aharon Robbins, 2014/03/28
- bug#17056: dfa.c patch for systems with no locale support, Paul Eggert, 2014/03/28