Mercurial > hg > octave-kai > gnulib-hg
comparison modules/setlocale-tests @ 14333:e58fa64818aa
setlocale: Workaround native Windows bug.
* lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
succeeds but sets LC_CTYPE to "C", report a failure.
* tests/test-setlocale2.sh: New file.
* tests/test-setlocale2.c: New file.
* modules/setlocale-tests (Files): Add the new files.
(Makefile.am): Enable test-setlocale2.sh test.
* doc/posix-functions/setlocale.texi: Mention workaround.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 12 Feb 2011 18:16:10 +0100 |
parents | d5e913a64b7c |
children |
comparison
equal
deleted
inserted
replaced
14332:afd1582f5497 | 14333:e58fa64818aa |
---|---|
1 Files: | 1 Files: |
2 tests/test-setlocale1.sh | 2 tests/test-setlocale1.sh |
3 tests/test-setlocale1.c | 3 tests/test-setlocale1.c |
4 tests/test-setlocale2.sh | |
5 tests/test-setlocale2.c | |
4 tests/signature.h | 6 tests/signature.h |
5 tests/macros.h | 7 tests/macros.h |
6 m4/locale-fr.m4 | 8 m4/locale-fr.m4 |
7 m4/locale-ja.m4 | 9 m4/locale-ja.m4 |
8 m4/locale-zh.m4 | 10 m4/locale-zh.m4 |
16 gt_LOCALE_FR_UTF8 | 18 gt_LOCALE_FR_UTF8 |
17 gt_LOCALE_JA | 19 gt_LOCALE_JA |
18 gt_LOCALE_ZH_CN | 20 gt_LOCALE_ZH_CN |
19 | 21 |
20 Makefile.am: | 22 Makefile.am: |
21 TESTS += test-setlocale1.sh | 23 TESTS += test-setlocale1.sh test-setlocale2.sh |
22 TESTS_ENVIRONMENT += \ | 24 TESTS_ENVIRONMENT += \ |
23 LOCALE_FR='@LOCALE_FR@' \ | 25 LOCALE_FR='@LOCALE_FR@' \ |
24 LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ | 26 LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ |
25 LOCALE_JA='@LOCALE_JA@' \ | 27 LOCALE_JA='@LOCALE_JA@' \ |
26 LOCALE_ZH_CN='@LOCALE_ZH_CN@' | 28 LOCALE_ZH_CN='@LOCALE_ZH_CN@' |
27 check_PROGRAMS += test-setlocale1 | 29 check_PROGRAMS += test-setlocale1 test-setlocale2 |