diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-03-21 13:53:49 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-03-21 13:53:49 +0200 |
commit | 56e12e27bdb968ceb4e377b9eb1ed31406b4a285 (patch) | |
tree | da0500c178257cb52ca70ab3a12003afc3e40b4c | |
parent | 1a9503d0c1739b9e9e61c6b79267f6db404d95f6 (diff) | |
parent | c44e165c9e7aaa57026a0b7e8a3a97d54c7f7db0 (diff) | |
download | egawk-56e12e27bdb968ceb4e377b9eb1ed31406b4a285.tar.gz egawk-56e12e27bdb968ceb4e377b9eb1ed31406b4a285.tar.bz2 egawk-56e12e27bdb968ceb4e377b9eb1ed31406b4a285.zip |
Merge branch 'gawk-4.1-stable'
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | dfa.c | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2014-03-21 Arnold D. Robbins <arnold@skeeve.com> + + * dfa.c (using_simple_locale): Add ifdefs in case there is no + locale support at all. Thanks to Scott Deifik for the report. + 2014-03-17 Arnold D. Robbins <arnold@skeeve.com> * .gitignore: Add .dSYM directories for Mac OS X. @@ -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; } |