1#! /bin/sh 2 3# Test merging of a ref.pot in UTF-8 encoding against a def.po in legacy 4# encoding (that was produced from an older version of ref.pot, in ASCII 5# encoding). 6 7tmpfiles="" 8trap 'rm -fr $tmpfiles' 1 2 3 15 9 10tmpfiles="$tmpfiles mm-test14-ru.po" 11cat <<\EOF > mm-test14-ru.po 12# Russian messages for CLISP 13# Copyright (C) 1998 Free Software Foundation, Inc. 14# Eduard Haritonov <hed@iis.nsk.su>, 1998. 15# Arseny Slobodjuck <ampy@ich.dvo.ru>, 2002. 16# 17msgid "" 18msgstr "" 19"Project-Id-Version: GNU elvis 1.7\n" 20"POT-Creation-Date: 2002-11-01 01:22+0100\n" 21"PO-Revision-Date: 2002-11-01 01:23+0100\n" 22"Last-Translator: Arseny Slobodjuck <ampy@ich.dvo.ru>\n" 23"Language-Team: Russian <ru@li.org>\n" 24"MIME-Version: 1.0\n" 25"Content-Type: text/plain; charset=koi8-r\n" 26"Content-Transfer-Encoding: 8bit\n" 27 28#: arith.c:9 29msgid "Division durch Null" 30msgstr "������� �� ����" 31EOF 32 33tmpfiles="$tmpfiles mm-test14.pot" 34cat <<\EOF > mm-test14.pot 35# SOME DESCRIPTIVE TITLE. 36# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 37# This file is distributed under the same license as the PACKAGE package. 38# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 39# 40#, fuzzy 41msgid "" 42msgstr "" 43"Project-Id-Version: PACKAGE VERSION\n" 44"POT-Creation-Date: 2002-11-01 01:22+0100\n" 45"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 46"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 47"Language-Team: LANGUAGE <LL@li.org>\n" 48"MIME-Version: 1.0\n" 49"Content-Type: text/plain; charset=UTF-8\n" 50"Content-Transfer-Encoding: 8bit\n" 51 52#: arith.c:10 53msgid "Division durch Null" 54msgstr "" 55 56#: arith.c:15 57msgid "��berlauf" 58msgstr "" 59EOF 60 61tmpfiles="$tmpfiles mm-test14.out" 62: ${MSGMERGE=msgmerge} 63${MSGMERGE} -q -o mm-test14.out mm-test14-ru.po mm-test14.pot 64test $? = 0 || { rm -fr $tmpfiles; exit 1; } 65 66tmpfiles="$tmpfiles mm-test14.ok" 67cat <<\EOF > mm-test14.ok 68# Russian messages for CLISP 69# Copyright (C) 1998 Free Software Foundation, Inc. 70# Eduard Haritonov <hed@iis.nsk.su>, 1998. 71# Arseny Slobodjuck <ampy@ich.dvo.ru>, 2002. 72# 73msgid "" 74msgstr "" 75"Project-Id-Version: GNU elvis 1.7\n" 76"POT-Creation-Date: 2002-11-01 01:22+0100\n" 77"PO-Revision-Date: 2002-11-01 01:23+0100\n" 78"Last-Translator: Arseny Slobodjuck <ampy@ich.dvo.ru>\n" 79"Language-Team: Russian <ru@li.org>\n" 80"MIME-Version: 1.0\n" 81"Content-Type: text/plain; charset=UTF-8\n" 82"Content-Transfer-Encoding: 8bit\n" 83 84#: arith.c:10 85msgid "Division durch Null" 86msgstr "�������������� ���� ��������" 87 88#: arith.c:15 89msgid "��berlauf" 90msgstr "" 91EOF 92 93: ${DIFF=diff} 94${DIFF} mm-test14.ok mm-test14.out 95result=$? 96 97rm -fr $tmpfiles 98 99exit $result 100