2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test of Perl support with UTF-8 encoded input.
6 cat <<\EOF > xg-pl-3.pl
8 printf "%s\n", gettext "Böse Bübchen - wo sind sie blo\N{LATIN SMALL LETTER SHARP S}?";
10 Die europäische Währung ist \N{EURO SIGN}.
14 : ${XGETTEXT=xgettext}
15 # delete POT-Creation-Date: line because the date depends on local time.
16 ${XGETTEXT} --output - --from-code=UTF-8 xg-pl-3.pl \
17 | sed '/\"POT-Creation-Date:.*/d' | LC_ALL=C tr -d '\r' > xg-pl-3.po || exit 1
19 cat <<\EOF > xg-pl-3.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"
39 msgid "Böse Bübchen - wo sind sie bloß?"
43 msgid "Die europäische Währung ist €.\n"
48 ${DIFF} xg-pl-3.ok xg-pl-3.po