]> Savannah Git Hosting - gnulib.git/commitdiff
quotearg tests: Fix test failure (regression yesterday).
authorBruno Haible <bruno@clisp.org>
Mon, 9 Dec 2024 08:51:01 +0000 (09:51 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 9 Dec 2024 08:51:01 +0000 (09:51 +0100)
* tests/testlocale/fr/LC_MESSAGES/gnulib.po: Renamed from
tests/testlocale/fr/LC_MESSAGES/test-quotearg.po.
* tests/testlocale/fr/LC_MESSAGES/gnulib.mo: Renamed from
tests/testlocale/fr/LC_MESSAGES/test-quotearg.mo.
* tests/test-quotearg.c (main): Use bindtextdomain for the domain
"gnulib", not "test-quotearg".
* tests/test-quotearg.sh: Fix typo in comments.
* modules/quotearg-tests (Files): Update.

ChangeLog
modules/quotearg-tests
tests/test-quotearg.c
tests/test-quotearg.sh
tests/testlocale/fr/LC_MESSAGES/gnulib.mo [new file with mode: 0644]
tests/testlocale/fr/LC_MESSAGES/gnulib.po [new file with mode: 0644]
tests/testlocale/fr/LC_MESSAGES/test-quotearg.mo [deleted file]
tests/testlocale/fr/LC_MESSAGES/test-quotearg.po [deleted file]

index 322b1bac9926c37bf0ab3351a522ab79e21d750e..e740515f0696478bf209690f5e0e62644188311a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2024-12-09  Bruno Haible  <bruno@clisp.org>
+
+       quotearg tests: Fix test failure (regression yesterday).
+       * tests/testlocale/fr/LC_MESSAGES/gnulib.po: Renamed from
+       tests/testlocale/fr/LC_MESSAGES/test-quotearg.po.
+       * tests/testlocale/fr/LC_MESSAGES/gnulib.mo: Renamed from
+       tests/testlocale/fr/LC_MESSAGES/test-quotearg.mo.
+       * tests/test-quotearg.c (main): Use bindtextdomain for the domain
+       "gnulib", not "test-quotearg".
+       * tests/test-quotearg.sh: Fix typo in comments.
+       * modules/quotearg-tests (Files): Update.
+
 2024-12-08  Bruno Haible  <bruno@clisp.org>
 
        Document the new approach for gnulib localization.
index d297f0b0aac3b8054501d609ca59bc05c3068c26..22223a953432a4c5d76ee9f1b8ac71b13e39356b 100644 (file)
@@ -6,8 +6,8 @@ tests/test-quotearg.sh
 tests/test-quotearg.c
 tests/test-quotearg.h
 tests/macros.h
-tests/testlocale/fr/LC_MESSAGES/test-quotearg.po
-tests/testlocale/fr/LC_MESSAGES/test-quotearg.mo
+tests/testlocale/fr/LC_MESSAGES/gnulib.po
+tests/testlocale/fr/LC_MESSAGES/gnulib.mo
 m4/locale-fr.m4
 m4/codeset.m4
 
index 0283f1ca1c246c358a4a7038947fa64ad1be4f4d..84bead740299468c6f43899d3cc9d67ddb309266 100644 (file)
@@ -82,8 +82,7 @@ main (_GL_UNUSED int argc, char *argv[])
         fputs ("Skipping test: no french Unicode locale is installed\n", stderr);
         return 77;
       }
-    textdomain ("test-quotearg");
-    bindtextdomain ("test-quotearg", getenv ("LOCALEDIR"));
+    bindtextdomain ("gnulib", getenv ("LOCALEDIR"));
 
     set_quoting_style (NULL, locale_quoting_style);
     compare_strings (use_quotearg_buffer, &locale_results[0].group1, false);
index e11b66783a1998ebc3b99aec80b57eaec7a0a73d..3d895a15347cab0e60d5174e4564e750a668db58 100755 (executable)
@@ -14,7 +14,7 @@ fi
 
 # Work around a limitation of gettext() on native Windows in gettext 0.18.1:
 # the locale identifiers in the environment variables LC_ALL etc. have to
-# be in Unix conventions, not in native Window conventions.
+# be in Unix conventions, not in native Windows conventions.
 if test $locale = French_France.65001; then
   locale=fr_FR.UTF-8
 fi
diff --git a/tests/testlocale/fr/LC_MESSAGES/gnulib.mo b/tests/testlocale/fr/LC_MESSAGES/gnulib.mo
new file mode 100644 (file)
index 0000000..87e97e1
Binary files /dev/null and b/tests/testlocale/fr/LC_MESSAGES/gnulib.mo differ
diff --git a/tests/testlocale/fr/LC_MESSAGES/gnulib.po b/tests/testlocale/fr/LC_MESSAGES/gnulib.po
new file mode 100644 (file)
index 0000000..1ea251f
--- /dev/null
@@ -0,0 +1,20 @@
+# Message catalog that maps the ASCII replacements for single-quote characters
+# to real single-quote characters.
+# The header entry is commented out on purpose, so that gettext() performs no
+# no character set conversion from the PO file's encoding to the locale
+# encoding. This allows us to use the same PO file in various locales.
+#msgid ""
+#msgstr ""
+#"Project-Id-Version: GNU gnulib\n"
+#"PO-Revision-Date: 2009-01-26 01:02+01:00\n"
+#"Last-Translator: Eric Blake <ebb9@byu.net>\n"
+#"Language-Team: Undetermined <und@li.org>\n"
+#"MIME-Version: 1.0\n"
+#"Content-Type: text/plain; charset=UTF-8\n"
+#"Content-Transfer-Encoding: 8bit\n"
+
+msgid "`"
+msgstr "\302\253"
+
+msgid "'"
+msgstr "\302\273"
diff --git a/tests/testlocale/fr/LC_MESSAGES/test-quotearg.mo b/tests/testlocale/fr/LC_MESSAGES/test-quotearg.mo
deleted file mode 100644 (file)
index 87e97e1..0000000
Binary files a/tests/testlocale/fr/LC_MESSAGES/test-quotearg.mo and /dev/null differ
diff --git a/tests/testlocale/fr/LC_MESSAGES/test-quotearg.po b/tests/testlocale/fr/LC_MESSAGES/test-quotearg.po
deleted file mode 100644 (file)
index 1ea251f..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-# Message catalog that maps the ASCII replacements for single-quote characters
-# to real single-quote characters.
-# The header entry is commented out on purpose, so that gettext() performs no
-# no character set conversion from the PO file's encoding to the locale
-# encoding. This allows us to use the same PO file in various locales.
-#msgid ""
-#msgstr ""
-#"Project-Id-Version: GNU gnulib\n"
-#"PO-Revision-Date: 2009-01-26 01:02+01:00\n"
-#"Last-Translator: Eric Blake <ebb9@byu.net>\n"
-#"Language-Team: Undetermined <und@li.org>\n"
-#"MIME-Version: 1.0\n"
-#"Content-Type: text/plain; charset=UTF-8\n"
-#"Content-Transfer-Encoding: 8bit\n"
-
-msgid "`"
-msgstr "\302\253"
-
-msgid "'"
-msgstr "\302\273"