summaryrefslogtreecommitdiff
path: root/tests/test-wcrtomb.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-03-03 19:11:32 +0100
committerJörg Frings-Fürst <debian@jff.email>2024-03-03 19:11:32 +0100
commit00893e79fc62966067af1a106567db96bd170338 (patch)
tree52b35cd0b42ca28e62a2ffbecade2e13dd8332cf /tests/test-wcrtomb.c
parent26112352a774737e1ce5580c93654a26c1e82b39 (diff)
New upstream version 1.2upstream/1.2
Diffstat (limited to 'tests/test-wcrtomb.c')
-rw-r--r--tests/test-wcrtomb.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/test-wcrtomb.c b/tests/test-wcrtomb.c
index 71d0faf3..640d6d9c 100644
--- a/tests/test-wcrtomb.c
+++ b/tests/test-wcrtomb.c
@@ -1,5 +1,5 @@
/* Test of conversion of wide character to multibyte character.
- Copyright (C) 2008-2022 Free Software Foundation, Inc.
+ Copyright (C) 2008-2024 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -117,6 +117,10 @@ main (int argc, char *argv[])
switch (argv[1][0])
{
case '1':
+ /* C locale; tested above. */
+ return 0;
+
+ case '2':
/* Locale encoding is ISO-8859-1 or ISO-8859-15. */
{
const char input[] = "B\374\337er"; /* "Büßer" */
@@ -126,7 +130,7 @@ main (int argc, char *argv[])
}
return 0;
- case '2':
+ case '3':
/* Locale encoding is UTF-8. */
{
const char input[] = "B\303\274\303\237er"; /* "Büßer" */
@@ -136,7 +140,7 @@ main (int argc, char *argv[])
}
return 0;
- case '3':
+ case '4':
/* Locale encoding is EUC-JP. */
{
const char input[] = "<\306\374\313\334\270\354>"; /* "<日本語>" */
@@ -147,7 +151,7 @@ main (int argc, char *argv[])
}
return 0;
- case '4':
+ case '5':
/* Locale encoding is GB18030. */
{
const char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
@@ -156,10 +160,6 @@ main (int argc, char *argv[])
check_character (input + 3, 4);
}
return 0;
-
- case '5':
- /* C locale; tested above. */
- return 0;
}
return 1;