2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test of Tcl support: escape sequences.
6 cat <<\EOF > xg-t-4.tcl
7 puts [_ "Hello\u200e\u201cWorld\u201d"]
12 : ${XGETTEXT=xgettext}
13 ${XGETTEXT} --add-comments --no-location -k_ -o xg-t-4.tmp xg-t-4.tcl 2>xg-t-4.err
14 test $? = 0 || { cat xg-t-4.err; exit 1; }
15 # Don't simplify this to "grep ... < xg-t-4.tmp", otherwise OpenBSD 4.0 grep
16 # only outputs "Binary file (standard input) matches".
17 cat xg-t-4.tmp | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > xg-t-4.pot
19 cat <<\EOF > xg-t-4.ok
20 # SOME DESCRIPTIVE TITLE.
21 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
22 # This file is distributed under the same license as the PACKAGE package.
23 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
28 "Project-Id-Version: PACKAGE VERSION\n"
29 "Report-Msgid-Bugs-To: \n"
30 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
31 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
32 "Language-Team: LANGUAGE <LL@li.org>\n"
35 "Content-Type: text/plain; charset=UTF-8\n"
36 "Content-Transfer-Encoding: 8bit\n"
49 ${DIFF} xg-t-4.ok xg-t-4.pot