1#! /bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Test --newline option. 5 6cat <<\EOF > mex-test6.po 7# HEADER. 8# 9msgid "" 10msgstr "" 11"Project-Id-Version: Bonnie Tyler\n" 12"Content-Type: text/plain; charset=ISO-8859-1\n" 13"Content-Transfer-Encoding: 8bit\n" 14 15#: married-men:4 16#, fuzzy 17msgid "The world is full of married men" 18msgstr "So viele verheiratete M�nner" 19 20#: married-men:5 21msgid "with wives who never understand" 22msgstr "und ihre Frauen verstehen sie nicht" 23 24#: married-men:6 25msgid "They're looking for someone to share" 26msgstr "" 27 28# schwer zu �bersetzen... 29#: married-men:7 30msgid "the excitement of a love affair" 31msgstr "" 32 33#: married-men:8 34msgid "Just as soon as they find you" 35msgstr "" 36 37#: married-men:9 38msgid "They warn you and darn you" 39msgstr "" 40 41#~ msgid "You fly on the wings of romance" 42#~ msgstr "Die Fl�gel der frischen Liebe\n" 43#~ "heben dich zum Himmel" 44 45#, fuzzy 46#~ msgid "In the eyes of the world" 47#~ msgstr "F�r die anderen" 48 49# Etwas freie �bersetzung. 50#~ msgid "You're just another crazy girl" 51#~ msgstr "bist du blo� ein verr�cktes dummes Ding" 52 53#~ msgid "Who loves a married man" 54#~ msgstr "das einen verheirateten Mann liebt" 55EOF 56 57cat <<\EOF > mex-test6.sh 58#! /bin/sh 59echo "========================= $MSGEXEC_LOCATION =========================" | LC_ALL=C tr -d '\r' 60cat <<MEOF 61$MSGEXEC_MSGID 62--- 63MEOF 64cat 65echo | LC_ALL=C tr -d '\r' 66exit 0 67EOF 68chmod a+x mex-test6.sh 69 70: ${MSGEXEC=msgexec} 71LC_ALL=C \ 72${MSGEXEC} --newline -i mex-test6.po ./mex-test6.sh > mex-test6.out 2> mex-test6.err 73result=$? 74cat mex-test6.err | grep -v 'warning: Locale charset' | grep -v '^ ' 75test $result = 0 || { Exit 1; } 76 77cat <<\EOF > mex-test6.ok 78========================= mex-test6.po:4 ========================= 79 80--- 81Project-Id-Version: Bonnie Tyler 82Content-Type: text/plain; charset=ISO-8859-1 83Content-Transfer-Encoding: 8bit 84 85 86========================= mex-test6.po:12 ========================= 87The world is full of married men 88--- 89So viele verheiratete M�nner 90 91========================= mex-test6.po:16 ========================= 92with wives who never understand 93--- 94und ihre Frauen verstehen sie nicht 95 96========================= mex-test6.po:20 ========================= 97They're looking for someone to share 98--- 99 100 101========================= mex-test6.po:25 ========================= 102the excitement of a love affair 103--- 104 105 106========================= mex-test6.po:29 ========================= 107Just as soon as they find you 108--- 109 110 111========================= mex-test6.po:33 ========================= 112They warn you and darn you 113--- 114 115 116========================= mex-test6.po:36 ========================= 117You fly on the wings of romance 118--- 119Die Fl�gel der frischen Liebe 120heben dich zum Himmel 121 122========================= mex-test6.po:41 ========================= 123In the eyes of the world 124--- 125F�r die anderen 126 127========================= mex-test6.po:45 ========================= 128You're just another crazy girl 129--- 130bist du blo� ein verr�cktes dummes Ding 131 132========================= mex-test6.po:48 ========================= 133Who loves a married man 134--- 135das einen verheirateten Mann liebt 136 137EOF 138 139: ${DIFF=diff} 140${DIFF} mex-test6.ok mex-test6.out 141result=$? 142 143exit $result 144