2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test reading in NeXTstep/GNUstep .strings syntax.
6 cat <<\EOF > mcat-s-1.in
7 /* This is an example of a string table file. Everything inside a comment
8 is completely ignored, even if in "quotes", or \escape characters, etc.
11 "title" = "pattern II target 1";
13 /* This is an example of excape codes in the string table, codes */
14 /* that are not one of abfnrtv are stripped of the \ character */
15 "escapes" = "This is a tab \t and a return \n or a \a but not a \p";
16 "escapes2" = "Well how about a \0? Guess not.";
18 /* more parameters, white space between tokens is ignored */
23 /* a key with no value assumes the value is the empty string */
29 LC_MESSAGES=C LC_ALL= \
30 ${MSGCAT} --stringtable-input -o mcat-s-1.tmp mcat-s-1.in >mcat-s-1.err 2>&1
32 cat mcat-s-1.err | grep -v ': internationalized messages'
33 test $result = 0 || { exit 1; }
34 LC_ALL=C tr -d '\r' < mcat-s-1.tmp > mcat-s-1.out || exit 1
36 cat << \EOF > mcat-s-1.ok
37 # This is an example of a string table file. Everything inside a comment
38 # is completely ignored, even if in "quotes", or \escape characters, etc.
41 msgstr "pattern II target 1"
43 # This is an example of excape codes in the string table, codes
44 # that are not one of abfnrtv are stripped of the \ character
47 "This is a tab \t and a return \n"
48 " or a \a but not a p"
51 msgstr "Well how about a "
53 # more parameters, white space between tokens is ignored
55 msgstr "0.000250 0.000250"
57 # a key with no value assumes the value is the empty string
58 msgid "hoe322070.element"
63 ${DIFF} mcat-s-1.ok mcat-s-1.out