]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Use locales with the customary names.
authorBruno Haible <bruno@clisp.org>
Thu, 4 Jan 2018 09:52:13 +0000 (10:52 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 4 Jan 2018 09:52:13 +0000 (10:52 +0100)
On glibc systems, nowadays, the German and French locales are named
'de_DE.UTF-8' and 'fr_FR.UTF-8', respectively. This change avoids the need
to install similar locales with different names.

* gettext-tools/tests/gettext-3: Use locales with '.UTF-8' suffix.
* gettext-tools/tests/gettext-3-prg.c (lang): Likewise.

gettext-tools/tests/gettext-3
gettext-tools/tests/gettext-3-prg.c

index 0f64ee8b849be80cb48821afb151fba2d4689a3e..404cee2af9066db92052d7212b76f61169c8a510 100755 (executable)
@@ -11,20 +11,20 @@ test "$GLIBC2" = yes || {
   Exit 77
 }
 
-# This test works only on systems that have a de_DE and fr_FR locale installed.
-LC_ALL=de_DE ../testlocale || {
+# This test works only on systems that have a de_DE.UTF-8 and fr_FR.UTF-8 locale installed.
+LC_ALL=de_DE.UTF-8 ../testlocale || {
   if test -f /usr/bin/localedef; then
-    echo "Skipping test: locale de_DE not installed"
+    echo "Skipping test: locale de_DE.UTF-8 not installed"
   else
-    echo "Skipping test: locale de_DE not supported"
+    echo "Skipping test: locale de_DE.UTF-8 not supported"
   fi
   Exit 77
 }
-LC_ALL=fr_FR ../testlocale || {
+LC_ALL=fr_FR.UTF-8 ../testlocale || {
   if test -f /usr/bin/localedef; then
-    echo "Skipping test: locale fr_FR not installed"
+    echo "Skipping test: locale fr_FR.UTF-8 not installed"
   else
-    echo "Skipping test: locale fr_FR not supported"
+    echo "Skipping test: locale fr_FR.UTF-8 not supported"
   fi
   Exit 77
 }
index aca8c5be156547fc541632f5e3e90527ed5996be..3bc2d2bff0d7fdace303aa88adc5cda1200e0cba 100644 (file)
@@ -44,7 +44,7 @@ struct data_t strings[] =
 };
 const int data_cnt = sizeof (strings) / sizeof (strings[0]);
 
-const char *lang[] = { "de_DE", "fr_FR", "ll_CC" };
+const char *lang[] = { "de_DE.UTF-8", "fr_FR.UTF-8", "ll_CC" };
 const int lang_cnt = sizeof (lang) / sizeof (lang[0]);
 
 int