2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test C# support: Unicode character escape handling
6 cat <<\EOF > xg-cs-8.cs
8 string s1 = "\U00020213"; // Codepoint U+20213
9 string s2 = "\uD840\uDE13"; // Encoded form of U+20213
10 string s3 = "\uD840\U0000DE13"; // Encoded form of U+20213
11 string s4 = "\U0000D840\uDE13"; // Encoded form of U+20213
12 string s5 = "\U0000D840\U0000DE13"; // Encoded form of U+20213
13 string s6 = "\xD840\xDE13"; // Encoded form of U+20213
16 string i1 = "\U0020213"; // Unterminated
17 string i2 = "\uD840\u3032"; // Missing low surrogate
18 string i3 = "\uD840\uDE1"; // Unterminated after a high surrogate
21 : ${XGETTEXT=xgettext}
22 ${XGETTEXT} --output - --add-location xg-cs-8.cs -a 2>/dev/null | \
23 sed '/\"POT-Creation-Date:.*/d' | LC_ALL=C tr -d '\r' > xg-cs-8.po || \
26 cat <<\EOF > xg-cs-8.ok
27 # SOME DESCRIPTIVE TITLE.
28 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
29 # This file is distributed under the same license as the PACKAGE package.
30 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
35 "Project-Id-Version: PACKAGE VERSION\n"
36 "Report-Msgid-Bugs-To: \n"
37 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
38 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
39 "Language-Team: LANGUAGE <LL@li.org>\n"
42 "Content-Type: text/plain; charset=UTF-8\n"
43 "Content-Transfer-Encoding: 8bit\n"
45 #: xg-cs-8.cs:2 xg-cs-8.cs:3 xg-cs-8.cs:4 xg-cs-8.cs:5 xg-cs-8.cs:6
64 ${DIFF} xg-cs-8.ok xg-cs-8.po