1#! /bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Test C support: invalid NUL termination 5 6: ${XGETTEXT=xgettext} 7 8${XGETTEXT} --no-location --no-wrap \ 9 -o xg-c-escape-3.tmp "$wabs_srcdir"/xg-c-escape-3.c || Exit 1 10func_filter_POT_Creation_Date xg-c-escape-3.tmp xg-c-escape-3.po 11 12cat <<\EOF > xg-c-escape-3.ok 13# SOME DESCRIPTIVE TITLE. 14# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 15# This file is distributed under the same license as the PACKAGE package. 16# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 17# 18#, fuzzy 19msgid "" 20msgstr "" 21"Project-Id-Version: PACKAGE VERSION\n" 22"Report-Msgid-Bugs-To: \n" 23"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 24"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 25"Language-Team: LANGUAGE <LL@li.org>\n" 26"Language: \n" 27"MIME-Version: 1.0\n" 28"Content-Type: text/plain; charset=CHARSET\n" 29"Content-Transfer-Encoding: 8bit\n" 30 31msgid "1abc" 32msgstr "" 33 34msgid "2abc" 35msgstr "" 36 37msgid "3abc" 38msgstr "" 39 40msgid "4abc" 41msgstr "" 42 43msgid "5abc" 44msgstr "" 45 46msgid "6abc" 47msgstr "" 48 49msgid "7abc" 50msgstr "" 51 52msgid "8abc\\x" 53msgstr "" 54 55msgid "9abc\n" 56msgstr "" 57 58msgid "10abc\\u" 59msgstr "" 60 61msgid "11abc\\U" 62msgstr "" 63 64msgid "12abc\\u3" 65msgstr "" 66 67msgid "13abc\\u45" 68msgstr "" 69 70msgid "14abc\\u567" 71msgstr "" 72EOF 73 74: ${DIFF=diff} 75${DIFF} xg-c-escape-3.ok xg-c-escape-3.po 76result=$? 77 78exit $result 79