* gettext-tools/src/x-sh.c (read_word): Reject \u and \U values in the range
0xD800..0xDFFF.
* gettext-tools/tests/xgettext-sh-9: Add more test cases.
}
if (j > 0)
{
- if (n < 0x110000)
+ if (n < 0x110000 && !(n >= 0xD800 && n <= 0xDFFF))
{
if (wp->type == t_string)
mixed_string_buffer_append_unicode (wp->token, n);
echo `echo \`gettext $'depth_2_dollar_posix_\xc1mn\301op'\``
echo `echo \`gettext $'depth_2_dollar_bash_\u20accd\U1f603kl'\``
+
+gettext $'high surrogate \udada'
+gettext $'low surrogate \udddd'
EOF
: ${XGETTEXT=xgettext}
msgid "depth_2_dollar_bash_€cd😃kl"
msgstr ""
+
+msgid "high surrogate \\udada"
+msgstr ""
+
+msgid "low surrogate \\udddd"
+msgstr ""
EOF
: ${DIFF=diff}