]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
sh: Test Bash ANSI-C quoting
authorDaiki Ueno <ueno@gnu.org>
Thu, 18 Dec 2014 03:18:22 +0000 (12:18 +0900)
committerDaiki Ueno <ueno@gnu.org>
Thu, 18 Dec 2014 03:19:01 +0000 (12:19 +0900)
* xgettext-sh-3: Test Bash ANSI-C quoting.

gettext-tools/tests/ChangeLog
gettext-tools/tests/xgettext-sh-3

index 12bc804986482659082330f34937d91a6c45d1b8..64484a03d9d376a812cb965311b6480582989093 100644 (file)
@@ -1,3 +1,7 @@
+2014-12-17  Daiki Ueno  <ueno@gnu.org>
+
+       * xgettext-sh-3: Test Bash ANSI-C quoting.
+
 2014-12-12  Daiki Ueno  <ueno@gnu.org>
 
        * format-lisp-2, format-scheme-2: Test type compatibility with
index a0e90850e6fd7e3617cd11a9b1b219026441d5fd..e6cadfe3de0e372d7688ea46cabfce63af4a1c20 100755 (executable)
@@ -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\e\f\n"
+"\r\t\va::=\\"
+msgstr ""
 EOF
 
 : ${DIFF=diff}