--- origsrc/gettext-0.18.1.1/gettext-tools/tests/format-c-3-prg.c 2010-06-06 08:49:58.000000000 -0400 +++ src/gettext-0.18.1.1/gettext-tools/tests/format-c-3-prg.c 2011-10-15 22:54:48.494133600 -0400 @@ -34,7 +34,7 @@ /* Disable the override of setlocale that libgnuintl.h activates on MacOS X and Windows. This test relies on the fake setlocale function in setlocale.c. */ -#undef setlocale +/* #undef setlocale */ #define _(string) gettext (string) --- origsrc/gettext-0.18.1.1/gettext-tools/tests/format-c-4-prg.c 2010-06-06 08:49:58.000000000 -0400 +++ src/gettext-0.18.1.1/gettext-tools/tests/format-c-4-prg.c 2011-10-15 21:49:23.028133600 -0400 @@ -34,7 +34,7 @@ /* Disable the override of setlocale that libgnuintl.h activates on MacOS X and Windows. This test relies on the fake setlocale function in setlocale.c. */ -#undef setlocale +/* #undef setlocale */ #define _(string) gettext (string) --- origsrc/gettext-0.18.1.1/gettext-tools/tests/plural-1 2010-06-06 08:49:58.000000000 -0400 +++ src/gettext-0.18.1.1/gettext-tools/tests/plural-1 2011-10-15 22:32:46.440133600 -0400 @@ -65,15 +65,15 @@ ${DIFF} fr.po.strip fr.po.un || exit 1 tmpfiles="$tmpfiles cake.ok cake.tmp cake.out" : ${DIFF=diff} echo 'un morceau de gateau' > cake.ok -LANGUAGE= ./cake fr 1 > cake.tmp || exit 1 +LANGUAGE= ./cake fr_FR 1 > cake.tmp || exit 1 LC_ALL=C tr -d '\r' < cake.tmp > cake.out || exit 1 ${DIFF} cake.ok cake.out || exit 1 echo '2 morceaux de gateau' > cake.ok -LANGUAGE= ./cake fr 2 > cake.tmp || exit 1 +LANGUAGE= ./cake fr_FR 2 > cake.tmp || exit 1 LC_ALL=C tr -d '\r' < cake.tmp > cake.out || exit 1 ${DIFF} cake.ok cake.out || exit 1 echo '10 morceaux de gateau' > cake.ok -LANGUAGE= ./cake fr 10 > cake.tmp || exit 1 +LANGUAGE= ./cake fr_FR 10 > cake.tmp || exit 1 LC_ALL=C tr -d '\r' < cake.tmp > cake.out || exit 1 ${DIFF} cake.ok cake.out || exit 1 --- origsrc/gettext-0.18.1.1/gettext-tools/tests/plural-1-prg.c 2010-06-06 08:49:58.000000000 -0400 +++ src/gettext-0.18.1.1/gettext-tools/tests/plural-1-prg.c 2011-10-15 23:00:57.110133600 -0400 @@ -30,7 +30,7 @@ /* Disable the override of setlocale that libgnuintl.h activates on MacOS X and Windows. This test relies on the fake setlocale function in setlocale.c. */ -#undef setlocale +/* #undef setlocale */ int main (int argc, char *argv[]) --- origsrc/gettext-0.18.1.1/gettext-tools/tests/plural-2 2010-06-06 08:49:58.000000000 -0400 +++ src/gettext-0.18.1.1/gettext-tools/tests/plural-2 2011-10-15 22:51:09.838133600 -0400 @@ -3,10 +3,10 @@ tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 -tmpfiles="$tmpfiles ll ll.po dataout" +tmpfiles="$tmpfiles es ll.po dataout" : ${MSGFMT=msgfmt} -test -d ll || mkdir ll -test -d ll/LC_MESSAGES || mkdir ll/LC_MESSAGES +test -d es || mkdir es +test -d es/LC_MESSAGES || mkdir es/LC_MESSAGES tmpfiles="$tmpfiles plural-2.data" cat < plural-2.data @@ -68,10 +68,10 @@ msgstr[7] "7" msgstr[8] "8" msgstr[9] "9" EOF - ${MSGFMT} -o ll/LC_MESSAGES/plural.mo ll.po || exit 1 + ${MSGFMT} -o es/LC_MESSAGES/plural.mo ll.po || exit 1 (for i in '' 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19; do LANGUAGE= TEXTDOMAIN=plural TEXTDOMAINDIR=. \ - $NGETTEXT --env LC_ALL=ll X Y ${i}0 ${i}1 ${i}2 ${i}3 ${i}4 ${i}5 ${i}6 ${i}7 ${i}8 ${i}9 + $NGETTEXT --env LC_ALL=es_ES X Y ${i}0 ${i}1 ${i}2 ${i}3 ${i}4 ${i}5 ${i}6 ${i}7 ${i}8 ${i}9 done) > dataout test "$dataok" = `cat dataout` || { echo "Formula evaluation error for language $lang" 1>&2