From: Bruno Haible Date: Sun, 4 Nov 2018 18:42:32 +0000 (+0100) Subject: xgettext: Enhance test for NUL byte handling. X-Git-Tag: v0.20~273 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40bfdf17a47358d674a90d24ec817ea8683c13e2;p=thirdparty%2Fgettext.git xgettext: Enhance test for NUL byte handling. * gettext-tools/tests/xg-c-21.c: Add some more test cases. * gettext-tools/tests/xgettext-c-21: Update expected result accordingly. Change expected result for backslash-NUL. --- diff --git a/gettext-tools/tests/xg-c-21.c b/gettext-tools/tests/xg-c-21.c index d49b6f0a2..fc95e5da9 100644 Binary files a/gettext-tools/tests/xg-c-21.c and b/gettext-tools/tests/xg-c-21.c differ diff --git a/gettext-tools/tests/xgettext-c-21 b/gettext-tools/tests/xgettext-c-21 index a29365315..5622f4bdc 100755 --- a/gettext-tools/tests/xgettext-c-21 +++ b/gettext-tools/tests/xgettext-c-21 @@ -5,7 +5,7 @@ : ${XGETTEXT=xgettext} -${XGETTEXT} --add-comments --no-location --no-wrap \ +${XGETTEXT} --no-location --no-wrap \ -o xg-c-21.tmp "$abs_srcdir"/xg-c-21.c || Exit 1 grep -v 'POT-Creation-Date' < xg-c-21.tmp > xg-c-21.tmq || Exit 1 LC_ALL=C tr -d '\r' < xg-c-21.tmq > xg-c-21.po || Exit 1 @@ -29,16 +29,46 @@ msgstr "" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" -msgid "\n" +msgid "1abc" msgstr "" -msgid "\\u" +msgid "2abc" msgstr "" -msgid "\\U" +msgid "3abc" msgstr "" -msgid "\\u3" +msgid "4abc" +msgstr "" + +msgid "5abc" +msgstr "" + +msgid "6abc" +msgstr "" + +msgid "7abc" +msgstr "" + +msgid "8abc\\x" +msgstr "" + +msgid "9abc\n" +msgstr "" + +msgid "10abc\\u" +msgstr "" + +msgid "11abc\\U" +msgstr "" + +msgid "12abc\\u3" +msgstr "" + +msgid "13abc\\u45" +msgstr "" + +msgid "14abc\\u567" msgstr "" EOF