+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.
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
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);
# 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
--- /dev/null
+# 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"
+++ /dev/null
-# 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"