2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test handling of format and 'range:' flag.
6 cat <<EOF > mcomm-test27.in1
12 #, c-format, range: 1..6
13 msgid "one week and one day"
14 msgid_plural "one week and %d days"
18 #, c-format, range: 1..7
19 msgid "two weeks and one day"
20 msgid_plural "two weeks and %d days"
24 #, c-format, range: 0..6
25 msgid "three weeks and one day"
26 msgid_plural "three weeks and %d days"
31 cat <<EOF > mcomm-test27.in2
32 #, c-format, range: 1..6
34 msgid_plural "%d days"
38 msgid "one week and one day"
39 msgid_plural "one week and %d days"
43 #, c-format, range: 0..6
44 msgid "two weeks and one day"
45 msgid_plural "two weeks and %d days"
49 #, c-format, range: 1..7
50 msgid "three weeks and one day"
51 msgid_plural "three weeks and %d days"
57 ${MSGCOMM} -o mcomm-test27.tmp mcomm-test27.in1 mcomm-test27.in2 || exit 1
58 LC_ALL=C tr -d '\r' < mcomm-test27.tmp > mcomm-test27.out || exit 1
60 cat << EOF > mcomm-test27.ok
63 msgid_plural "%d days"
68 msgid "one week and one day"
69 msgid_plural "one week and %d days"
73 #, c-format, range: 0..7
74 msgid "two weeks and one day"
75 msgid_plural "two weeks and %d days"
79 #, c-format, range: 0..7
80 msgid "three weeks and one day"
81 msgid_plural "three weeks and %d days"
87 ${DIFF} mcomm-test27.ok mcomm-test27.out