+2014-04-21 Daiki Ueno <ueno@gnu.org>
+
+ msgfilter: Fix single quote handling in the quot filter
+ * filter-quote.c (convert_ascii_quote_to_unicode): Fix single
+ quote handling to accept multiple quotations in a string.
+
2014-04-17 Daiki Ueno <ueno@gnu.org>
xgettext: Strip multiple ".in" suffixes from the file name.
for (p = start; p <= end; p++)
{
- int j;
-
switch (*p)
{
case '"':
}
state = false;
}
- else if (start == input || *(start - 1) == '\n'
- || *(start - 1) == ' ')
+ else if (p == input || *(p - 1) == '\n' || *(p - 1) == ' ')
{
/* Copy the preceding string to R. */
memcpy (r, start, p - start);
msgid "\"\"double quoted\""
msgstr "\"\"double quoted\""
+msgid "\"foo\" \"bar\" \"baz\""
+msgstr "\"foo\" \"bar\" \"baz\""
+
msgid "double quoted but empty \"\""
msgstr "double quoted but empty \"\""
msgid "'single quoted'"
msgstr "'single quoted'"
+msgid "'foo' 'bar' 'baz'"
+msgstr "'foo' 'bar' 'baz'"
+
msgid "prefix'single quoted without surrounding spaces'suffix"
msgstr "prefix'single quoted without surrounding spaces'suffix"
msgid "\"\"double quoted\""
msgstr "\"\"double quoted\""
+msgid "\"foo\" \"bar\" \"baz\""
+msgstr "“foo” “bar” “baz”"
+
msgid "double quoted but empty \"\""
msgstr "double quoted but empty \"\""
msgid "'single quoted'"
msgstr "'single quoted'"
+msgid "'foo' 'bar' 'baz'"
+msgstr "‘foo’ ‘bar’ ‘baz’"
+
msgid "prefix'single quoted without surrounding spaces'suffix"
msgstr "prefix'single quoted without surrounding spaces'suffix"
msgid "\"\"double quoted\""
msgstr "\"\"double quoted\""
+msgid "\"foo\" \"bar\" \"baz\""
+msgstr "“\e[1mfoo\e[0m” “\e[1mbar\e[0m” “\e[1mbaz\e[0m”"
+
msgid "double quoted but empty \"\""
msgstr "double quoted but empty \"\""
msgid "'single quoted'"
msgstr "'single quoted'"
+msgid "'foo' 'bar' 'baz'"
+msgstr "‘\e[1mfoo\e[0m’ ‘\e[1mbar\e[0m’ ‘\e[1mbaz\e[0m’"
+
msgid "prefix'single quoted without surrounding spaces'suffix"
msgstr "prefix'single quoted without surrounding spaces'suffix"