From: Daiki Ueno Date: Thu, 18 Dec 2014 03:18:22 +0000 (+0900) Subject: sh: Test Bash ANSI-C quoting X-Git-Tag: v0.19.4~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=634e4de472e55016834f98bc6b30176ce7228840;p=thirdparty%2Fgettext.git sh: Test Bash ANSI-C quoting * xgettext-sh-3: Test Bash ANSI-C quoting. --- diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index 12bc80498..64484a03d 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,7 @@ +2014-12-17 Daiki Ueno + + * xgettext-sh-3: Test Bash ANSI-C quoting. + 2014-12-12 Daiki Ueno * format-lisp-2, format-scheme-2: Test type compatibility with diff --git a/gettext-tools/tests/xgettext-sh-3 b/gettext-tools/tests/xgettext-sh-3 index a0e90850e..e6cadfe3d 100755 --- a/gettext-tools/tests/xgettext-sh-3 +++ b/gettext-tools/tests/xgettext-sh-3 @@ -1,10 +1,12 @@ #!/bin/sh . "${srcdir=.}/init.sh"; path_prepend_ . ../src -# Test Shell support: backslashed double-quotes inside single-quotes. +# Test Shell support: backslashed double-quotes inside single-quotes +# and ANSI-C quoting. cat <<\EOF > xg-sh-3.sh echo `gettext 'abc\"def'` +echo `gettext $'\'\"\a\b\e\f\n\r\t\v\x61\x3a\x3A\075\\'` EOF : ${XGETTEXT=xgettext} @@ -14,6 +16,11 @@ LC_ALL=C tr -d '\r' < xg-sh-3.tmp.po > xg-sh-3.po || exit 1 cat <<\EOF > xg-sh-3.ok msgid "abc\\\"def" msgstr "" + +msgid "" +"'\"\a\b\f\n" +"\r\t\va::=\\" +msgstr "" EOF : ${DIFF=diff}