* gettext-tools/src/x-vala.c (phase7_getc): Don't recognize \?, \a, \1...\7, \U.
Do recognize \$.
* gettext-tools/tests/xgettext-vala-1: Test \t in verbatim strings literals.
* NEWS: Mention the change.
- Pascal:
xgettext can now extract strings from .rsj files, produced by the
Free Pascal compiler version 3.0.0 or newer.
+ - Vala:
+ xgettext now parses escape sequences in strings more accurately.
* Runtime behaviour:
- The interpretation of the language preferences on macOS has been fixed.
case '"':
case '\'':
- case '?':
case '\\':
+ case '$':
return c;
- case 'a':
- return '\a';
case 'b':
return '\b';
- /* The \e escape is preculiar to gcc, and assumes an ASCII
- character set (or superset). We don't provide support for it
- here. */
-
case 'f':
return '\f';
case 'n':
}
return n;
- case '0': case '1': case '2': case '3':
- case '4': case '5': case '6': case '7':
+ case '0':
n = 0;
for (j = 0; j < 3; ++j)
{
phase1_ungetc (c);
return n;
- case 'U': case 'u':
+ case 'u':
{
unsigned char buf[8];
n = 0;
- for (j = 0; j < (c == 'u' ? 4 : 8); j++)
+ for (j = 0; j < 4; j++)
{
int c1 = phase1_getc ();
}
var s4 = _("""Extract this
- ""\a
+ ""\t\a
fourth string""");
var s5 = _("Extract this \u2464th string");
msgid ""
"Extract this\n"
-" \"\"\\a\n"
+" \"\"\\t\\a\n"
" fourth string"
msgstr ""
msgid ""
"Extract this\n"
-" \"\"\\a\n"
+" \"\"\\t\\a\n"
" fourth string"
msgstr ""