Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / tests / msgcat-11
1 #! /bin/sh
2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4 # Verify that msgcat leaves #: lines in place even if they have a bizarre
5 # syntax.
6
7 cat <<\EOF > mcat-test11.in
8 #: basctl/source\basicide\basidesh.src#RID_STR_NOMODULE.text
9 msgid "Simple"
10 msgstr "Einfach"
11
12 #: basctl/source\basicide\basidesh.src:RID_STR_NOMODULE.text
13 msgid "Different"
14 msgstr "Anders"
15
16 #: file:4
17 msgid "where"
18 msgstr "wo"
19
20 #: line:4
21 msgid "what"
22 msgstr "was"
23
24 #: number:4
25 msgid "who"
26 msgstr "wer"
27
28 #: foobar:4a
29 msgid "whenever"
30 msgstr "immer"
31 EOF
32
33 : ${MSGCAT=msgcat}
34 ${MSGCAT} -o mcat-test11.tmp mcat-test11.in || exit 1
35 LC_ALL=C tr -d '\r' < mcat-test11.tmp > mcat-test11.out || exit 1
36
37 : ${DIFF=diff}
38 ${DIFF} mcat-test11.in mcat-test11.out
39 result=$?
40
41 exit $result