mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Fix missing declaration of LC_CTYPE nonascii-case element
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
License along with the GNU C Library; if not, see
|
||||
<http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <locale.h>
|
||||
#include <ctype.h>
|
||||
#define TEST_MAIN
|
||||
#define TEST_NAME "strncasecmp"
|
||||
@@ -256,17 +257,21 @@ bz14195 (void)
|
||||
check_result (impl, empty_string, "", 5, 0);
|
||||
}
|
||||
|
||||
int
|
||||
test_main (void)
|
||||
static void
|
||||
test_locale (const char *locale)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
test_init ();
|
||||
if (setlocale (LC_CTYPE, locale) == NULL)
|
||||
{
|
||||
error (0, 0, "cannot set locale \"%s\"", locale);
|
||||
ret = 1;
|
||||
}
|
||||
|
||||
bz12205 ();
|
||||
bz14195 ();
|
||||
|
||||
printf ("%23s", "");
|
||||
printf ("%23s", locale);
|
||||
FOR_EACH_IMPL (impl, 0)
|
||||
printf ("\t%s", impl->name);
|
||||
putchar ('\n');
|
||||
@@ -329,6 +334,19 @@ test_main (void)
|
||||
}
|
||||
|
||||
do_random_tests ();
|
||||
}
|
||||
|
||||
int
|
||||
test_main (void)
|
||||
{
|
||||
test_init ();
|
||||
|
||||
test_locale ("C");
|
||||
test_locale ("en_US.ISO-8859-1");
|
||||
test_locale ("en_US.UTF-8");
|
||||
test_locale ("tr_TR.ISO-8859-9");
|
||||
test_locale ("tr_TR.UTF-8");
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user