summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gettext-tools/tests/ChangeLog4
-rwxr-xr-xgettext-tools/tests/format-python-29
2 files changed, 13 insertions, 0 deletions
diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog
index e57bfae..90a202b 100644
--- a/gettext-tools/tests/ChangeLog
+++ b/gettext-tools/tests/ChangeLog
@@ -1,3 +1,7 @@
+2008-08-15 Bruno Haible <bruno@clisp.org>
+
+ * format-python-2: Check that %.0s normally behaves like %s.
+
2008-06-01 Bruno Haible <bruno@clisp.org>
* lang-bash: Add note about failure on MacOS X.
diff --git a/gettext-tools/tests/format-python-2 b/gettext-tools/tests/format-python-2
index 5979906..3d9d208 100755
--- a/gettext-tools/tests/format-python-2
+++ b/gettext-tools/tests/format-python-2
@@ -84,6 +84,9 @@ msgid "abc%c"
msgstr "xyz%s"
# Invalid: type incompatibility
msgid "abc%c"
+msgstr "xyz%.0s"
+# Invalid: type incompatibility
+msgid "abc%c"
msgstr "xyz%i"
# Invalid: type incompatibility
msgid "abc%c"
@@ -92,9 +95,15 @@ msgstr "xyz%e"
msgid "abc%s"
msgstr "xyz%i"
# Invalid: type incompatibility
+msgid "abc%.0s"
+msgstr "xyz%i"
+# Invalid: type incompatibility
msgid "abc%s"
msgstr "xyz%e"
# Invalid: type incompatibility
+msgid "abc%.0s"
+msgstr "xyz%e"
+# Invalid: type incompatibility
msgid "abc%i"
msgstr "xyz%e"
# Invalid: type incompatibility for width