1#! /bin/sh 2 3# Test -j option with charset conversion from ISO-8859-1 to UTF-8. 4 5tmpfiles="" 6trap 'rm -fr $tmpfiles' 1 2 3 15 7 8tmpfiles="$tmpfiles xg-test8.po" 9cat <<\EOF > xg-test8.po 10# SOME DESCRIPTIVE TITLE. 11# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 12# This file is distributed under the same license as the PACKAGE package. 13# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 14# 15#, fuzzy 16msgid "" 17msgstr "" 18"Project-Id-Version: PACKAGE VERSION\n" 19"Report-Msgid-Bugs-To: \n" 20"POT-Creation-Date: 2004-10-22 12:39+0200\n" 21"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 22"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 23"Language-Team: LANGUAGE <LL@li.org>\n" 24"MIME-Version: 1.0\n" 25"Content-Type: text/plain; charset=ISO-8859-1\n" 26"Content-Transfer-Encoding: 8bit\n" 27 28#: fifo.c:4 29msgid "@(#)fifo.c\t1.56 04/10/10 Copyright 1989, 1994-2003 J�rg Schilling" 30msgstr "�" 31EOF 32 33tmpfiles="$tmpfiles xg-test8.in.c" 34cat <<EOF > xg-test8.in.c 35_("extract me") 36EOF 37 38: ${XGETTEXT=xgettext} 39${XGETTEXT} -a -j -o xg-test8.po xg-test8.in.c 40test $? = 0 || { rm -fr $tmpfiles; exit 1; } 41 42tmpfiles="$tmpfiles xg-test8.pot" 43sed -e '/POT-Creation-Date/d' < xg-test8.po > xg-test8.pot 44 45tmpfiles="$tmpfiles xg-test8.ok" 46cat <<\EOF > xg-test8.ok 47# SOME DESCRIPTIVE TITLE. 48# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 49# This file is distributed under the same license as the PACKAGE package. 50# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 51# 52#, fuzzy 53msgid "" 54msgstr "" 55"Project-Id-Version: PACKAGE VERSION\n" 56"Report-Msgid-Bugs-To: \n" 57"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 58"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 59"Language-Team: LANGUAGE <LL@li.org>\n" 60"MIME-Version: 1.0\n" 61"Content-Type: text/plain; charset=UTF-8\n" 62"Content-Transfer-Encoding: 8bit\n" 63 64#: fifo.c:4 65msgid "@(#)fifo.c\t1.56 04/10/10 Copyright 1989, 1994-2003 J��rg Schilling" 66msgstr "��" 67 68#: xg-test8.in.c:1 69msgid "extract me" 70msgstr "" 71EOF 72 73: ${DIFF=diff} 74${DIFF} xg-test8.ok xg-test8.pot 75result=$? 76 77rm -fr $tmpfiles 78 79exit $result 80