* xgettext-sh-3: Test Bash ANSI-C quoting.
+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
#!/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}
cat <<\EOF > xg-sh-3.ok
msgid "abc\\\"def"
msgstr ""
+
+msgid ""
+"'\"\a\b\e\f\n"
+"\r\t\va::=\\"
+msgstr ""
EOF
: ${DIFF=diff}