comparison tests/test-wcrtomb.c @ 40137:9e646f080d9e

wcrtomb: Work around bug on Android 4.3. * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in the C locale. * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android, which does not have the 'wctomb' function. * doc/posix-functions/wcrtomb.texi: Mention the Android bug. * tests/test-wcrtomb.c (main): Accept argument '5'. * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
author Bruno Haible <bruno@clisp.org>
date Fri, 25 Jan 2019 23:39:28 +0100
parents b06060465f09
children
comparison
equal deleted inserted replaced
40136:06c22cab9098 40137:9e646f080d9e
154 154
155 check_character (input + 1, 2); 155 check_character (input + 1, 2);
156 check_character (input + 3, 4); 156 check_character (input + 3, 4);
157 } 157 }
158 return 0; 158 return 0;
159
160 case '5':
161 /* C locale; tested above. */
162 return 0;
159 } 163 }
160 164
161 return 1; 165 return 1;
162 } 166 }