This fixes a 'make installcheck' failure.
<https://www.illumos.org/issues/13423> has been reported more than 4 years ago.
I don't have hope that they will fix it, ever.
* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): On Solaris other than
Solaris 11.4, don't use the gettext() function in libc.
* gettext-tools/tests/init.cfg (prepare_locale_): Remove function.
* gettext-tools/tests/format-c-3: Remove prepare_locale_ invocations.
* gettext-tools/tests/format-c-4: Likewise.
* gettext-tools/tests/format-c-5: Likewise.
* gettext-tools/tests/intl-0: Likewise.
* gettext-tools/tests/intl-1: Likewise.
* gettext-tools/tests/intl-2: Likewise.
* gettext-tools/tests/intl-3: Likewise.
* gettext-tools/tests/intl-4: Likewise.
* gettext-tools/tests/intl-6: Likewise.
* gettext-tools/tests/intl-7: Likewise.
* gettext-tools/tests/intl-thread-1: Likewise.
* gettext-tools/tests/intl-thread-2: Likewise.
* gettext-tools/tests/intl-thread-3: Likewise.
* gettext-tools/tests/lang-bash: Likewise.
* gettext-tools/tests/lang-c: Likewise.
* gettext-tools/tests/lang-c++: Likewise.
* gettext-tools/tests/lang-c++20: Likewise.
* gettext-tools/tests/lang-c++26: Likewise.
* gettext-tools/tests/lang-clisp: Likewise.
* gettext-tools/tests/lang-csharp: Likewise.
* gettext-tools/tests/lang-d: Likewise.
* gettext-tools/tests/lang-gawk: Likewise.
* gettext-tools/tests/lang-go: Likewise.
* gettext-tools/tests/lang-guile: Likewise.
* gettext-tools/tests/lang-java: Likewise.
* gettext-tools/tests/lang-javascript: Likewise.
* gettext-tools/tests/lang-librep: Likewise.
* gettext-tools/tests/lang-lua: Likewise.
* gettext-tools/tests/lang-modula2: Likewise.
* gettext-tools/tests/lang-objc: Likewise.
* gettext-tools/tests/lang-pascal: Likewise.
* gettext-tools/tests/lang-perl-1: Likewise.
* gettext-tools/tests/lang-perl-2: Likewise.
* gettext-tools/tests/lang-php: Likewise.
* gettext-tools/tests/lang-python-1: Likewise.
* gettext-tools/tests/lang-python-2: Likewise.
* gettext-tools/tests/lang-ruby: Likewise.
* gettext-tools/tests/lang-rust: Likewise.
* gettext-tools/tests/lang-sh: Likewise.
* gettext-tools/tests/lang-smalltalk: Likewise.
* gettext-tools/tests/lang-tcl: Likewise.
* gettext-tools/tests/lang-vala: Likewise.
* gettext-tools/tests/msgfmt-20: Likewise.
* gettext-tools/tests/plural-1: Likewise.
* NEWS: Mention the change.
heuristic by using a comment of the form /* xgettext: c-format */.
# Bug fixes:
+ - The AM_GNU_GETTEXT macro now rejects the dysfunctional gettext() function
+ in libc of Solaris 11.[0-3], Solaris OpenIndiana, and Solaris OmniOS.
- The AM_GNU_GETTEXT macro now recognizes, on MSVC, the GNU libintl built
as a shared library.
# gettext.m4
-# serial 82 (gettext-0.26)
+# serial 83 (gettext-0.26)
dnl Copyright (C) 1995-2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
bindtextdomain ("", "");
return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
]])],
- [eval "$gt_func_gnugettext_libc=yes"],
+ [dnl Solaris 11.[0-3] doesn't strip the CODESET part from the locale name,
+ dnl when looking for a message catalog. E.g. when the locale is fr_FR.UTF-8,
+ dnl on Solaris 11.[0-3] it looks for
+ dnl <LOCALEDIR>/fr_FR.UTF-8/LC_MESSAGES/<domain>.mo
+ dnl <LOCALEDIR>/fr.UTF-8/LC_MESSAGES/<domain>.mo
+ dnl Similarly, on Solaris 11 OpenIndiana and Solaris 11 OmniOS it looks only for
+ dnl <LOCALEDIR>/fr_FR.UTF-8/LC_MESSAGES/<domain>.mo
+ dnl Reported at <https://www.illumos.org/issues/13423>.
+ dnl On Solaris 11.4 this is fixed: it looks for
+ dnl <LOCALEDIR>/fr_FR.UTF-8/LC_MESSAGES/<domain>.mo
+ dnl <LOCALEDIR>/fr.UTF-8/LC_MESSAGES/<domain>.mo
+ dnl <LOCALEDIR>/fr_FR/LC_MESSAGES/<domain>.mo
+ dnl <LOCALEDIR>/fr/LC_MESSAGES/<domain>.mo
+ if test "`uname -sr`" = 'SunOS 5.11'; then
+ case `uname -v` in
+ 11.4 | 11.4.*) eval "$gt_func_gnugettext_libc=yes" ;;
+ *) eval "$gt_func_gnugettext_libc=no" ;;
+ esac
+ else
+ eval "$gt_func_gnugettext_libc=yes"
+ fi
+ ],
[eval "$gt_func_gnugettext_libc=no"])])
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ fc3-dir/fr fc3-dir/$LOCALE_FR
LANGUAGE= ../fc3 $LOCALE_FR || Exit 1
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fc3-dir/fr fc3-dir/$LOCALE_FR_UTF8
LANGUAGE= ../fc3 $LOCALE_FR_UTF8 || Exit 1
fi
if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ fc4-dir/fr fc4-dir/$LOCALE_FR
LANGUAGE= ../fc4 $LOCALE_FR || Exit 1
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fc4-dir/fr fc4-dir/$LOCALE_FR_UTF8
LANGUAGE= ../fc4 $LOCALE_FR_UTF8 || Exit 1
fi
if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
skipped=true
- prepare_locale_ fa fa_IR
LANGUAGE= ../fc5 fa_IR
case $? in
0) skipped=false ;;
*) Exit 1;;
esac
- prepare_locale_ fa fa_IR.UTF-8
LANGUAGE= ../fc5 fa_IR.UTF-8
case $? in
0) skipped=false ;;
test -d ar/LC_MESSAGES || mkdir ar/LC_MESSAGES
cp fa/LC_MESSAGES/fc5.mo ar/LC_MESSAGES/fc5.mo
- prepare_locale_ ar ar_EG
LANGUAGE= ../fc5 ar_EG
case $? in
0) skipped=false ;;
*) Exit 1;;
esac
- prepare_locale_ ar ar_EG.UTF-8
LANGUAGE= ../fc5 ar_EG.UTF-8
case $? in
0) skipped=false ;;
# Set environment variables for the tests.
. ../tests/init-env
-prepare_locale_ ()
-{
- # Solaris 11.[0-3] doesn't strip the CODESET part from the locale name,
- # when looking for a message catalog. E.g. when the locale is fr_FR.UTF-8,
- # on Solaris 11.[0-3] it looks for
- # <LOCALEDIR>/fr_FR.UTF-8/LC_MESSAGES/<domain>.mo
- # <LOCALEDIR>/fr.UTF-8/LC_MESSAGES/<domain>.mo
- # Similarly, on Solaris 11 OpenIndiana and Solaris 11 OmniOS it looks only for
- # <LOCALEDIR>/fr_FR.UTF-8/LC_MESSAGES/<domain>.mo
- # Reported at <https://www.illumos.org/issues/13423>.
- # On Solaris 11.4 this is fixed: it looks for
- # <LOCALEDIR>/fr_FR.UTF-8/LC_MESSAGES/<domain>.mo
- # <LOCALEDIR>/fr.UTF-8/LC_MESSAGES/<domain>.mo
- # <LOCALEDIR>/fr_FR/LC_MESSAGES/<domain>.mo
- # <LOCALEDIR>/fr/LC_MESSAGES/<domain>.mo
- # Create a directory link with CODESET, to work around this.
- if test "$1" != "$2" && test "$GLIBC2" = no; then
- case "$host_os" in
- solaris2.11)
- # Copy the contents of "$1" into "$2", preserving the existing contents
- # of "$2".
- mkdir -p "$2"
- for d in `cd "$1" && find . -type d -print | grep -v '^[.]$' | sed -e 's|^[.]/||'`; do
- mkdir -p "$2/$d"
- done
- for f in `cd "$1" && find . -type f -print`; do
- if test -f "$2/$f"; then
- :
- else
- ln "$1/$f" "$2/$f"
- fi
- done
- ;;
- esac
- fi
-}
-
# func_filter_POT_Creation_Date inputfile outputfile
# creates outputfile from inputfile, filtering out any 'POT-Creation-Date' line.
func_filter_POT_Creation_Date ()
LC_ALL=C tr -d '\r' < in-0.tmp > in-0-1.out || Exit 1
${DIFF} in-0.ok in-0-1.out || Exit 1
-prepare_locale_ in-0/C in-0/C.UTF-8
../intl-1-prg in-0 C.UTF-8 > in-0.tmp || Exit 1
LC_ALL=C tr -d '\r' < in-0.tmp > in-0-2.out || Exit 1
${DIFF} in-0.ok in-0-2.out || Exit 1
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ in-1/fr in-1/$LOCALE_FR
../intl-1-prg in-1 $LOCALE_FR > in-1.tmp || Exit 1
LC_ALL=C tr -d '\r' < in-1.tmp > in-1.out || Exit 1
${DIFF} in-1.ok in-1.out || Exit 1
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ in-1/fr in-1/$LOCALE_FR_UTF8
../intl-1-prg in-1 $LOCALE_FR_UTF8 > in-1.tmp || Exit 1
LC_ALL=C tr -d '\r' < in-1.tmp > in-1.out || Exit 1
${DIFF} in-1.ok in-1.out || Exit 1
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ in-2-1/fr in-2-1/$LOCALE_FR
- prepare_locale_ in-2-2/fr in-2-2/$LOCALE_FR
../intl-1-prg in-2-1 $LOCALE_FR > in-2.tmp || Exit 1
LC_ALL=C tr -d '\r' < in-2.tmp > in-2.out || Exit 1
${DIFF} in-2-1.ok in-2.out || Exit 1
${DIFF} in-2-1.ok in-2.out || Exit 1
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ in-2-1/fr in-2-1/$LOCALE_FR_UTF8
- prepare_locale_ in-2-2/fr in-2-2/$LOCALE_FR_UTF8
../intl-1-prg in-2-1 $LOCALE_FR_UTF8 > in-2.tmp || Exit 1
LC_ALL=C tr -d '\r' < in-2.tmp > in-2.out || Exit 1
${DIFF} in-2-2.ok in-2.out || Exit 1
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ in-3-1/fr in-3-1/$LOCALE_FR
- prepare_locale_ in-3-2/fr in-3-2/$LOCALE_FR
../intl-3-prg in-3-1 $LOCALE_FR ISO-8859-1 > in-3.tmp || Exit 1
LC_ALL=C tr -d '\r' < in-3.tmp > in-3.out || Exit 1
${DIFF} in-3-1.ok in-3.out || Exit 1
${DIFF} in-3-2.ok in-3.out || Exit 1
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ in-3-1/fr in-3-1/$LOCALE_FR_UTF8
- prepare_locale_ in-3-2/fr in-3-2/$LOCALE_FR_UTF8
../intl-3-prg in-3-1 $LOCALE_FR_UTF8 ISO-8859-1 > in-3.tmp || Exit 1
LC_ALL=C tr -d '\r' < in-3.tmp > in-3.out || Exit 1
${DIFF} in-3-1.ok in-3.out || Exit 1
# traditional german locale.
: ${LOCALE_FR=fr_FR}
if test $LOCALE_FR != none; then
- prepare_locale_ in-4/fr in-4/$LOCALE_FR
../intl-4-prg $LOCALE_FR || Exit 1
else
if test -f /usr/bin/localedef; then
# they are not supported in the fr_FR.ISO-8859-1 locale.
;;
*)
- prepare_locale_ in-6/fr in-6/$LOCALE_FR
../intl-6-prg in-6 $LOCALE_FR > in-6.tmp || Exit 1
LC_ALL=C tr -d '\r' < in-6.tmp > in-6.out || Exit 1
${DIFF} in-6.ok in-6.out || Exit 1
esac
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ in-6/fr in-6/$LOCALE_FR_UTF8
../intl-6-prg in-6 $LOCALE_FR_UTF8 > in-6.tmp || Exit 1
LC_ALL=C tr -d '\r' < in-6.tmp > in-6.out || Exit 1
${DIFF} in-6.ok in-6.out || Exit 1
# they are not supported in the fr_FR.ISO-8859-1 locale.
;;
*)
- prepare_locale_ in-7/fr_FR in-7/$LOCALE_FR
- prepare_locale_ in-7/fr in-7/$LOCALE_FR
- prepare_locale_ "${ldir}"/fr "${ldir}"/$LOCALE_FR
../intl-7-prg "${ldir}" in-7 $LOCALE_FR > in-7.tmp || Exit 1
LC_ALL=C tr -d '\r' < in-7.tmp > in-7.out || Exit 1
${DIFF} in-7.ok in-7.out || Exit 1
esac
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ in-7/fr_FR in-7/$LOCALE_FR_UTF8
- prepare_locale_ in-7/fr in-7/$LOCALE_FR_UTF8
- prepare_locale_ "${ldir}"/fr "${ldir}"/$LOCALE_FR_UTF8
../intl-7-prg "${ldir}" in-7 $LOCALE_FR_UTF8 > in-7.tmp || Exit 1
LC_ALL=C tr -d '\r' < in-7.tmp > in-7.out || Exit 1
${DIFF} in-7.ok in-7.out || Exit 1
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ in-th-1/fr in-th-1/$LOCALE_FR
../intl-thread-1-prg $LOCALE_FR > in-th-1.out
case $? in
0) ;;
esac
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ in-th-1/fr in-th-1/$LOCALE_FR_UTF8
../intl-thread-1-prg $LOCALE_FR_UTF8 > in-th-1.out
case $? in
0) ;;
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
: ${LOCALE_DE_UTF8=de_DE.UTF-8}
if test $LOCALE_FR_UTF8 != none && test $LOCALE_DE_UTF8 != none; then
- prepare_locale_ in-th-2/fr in-th-2/$LOCALE_FR_UTF8
- prepare_locale_ in-th-2/de in-th-2/$LOCALE_DE_UTF8
../intl-thread-2-prg $LOCALE_FR_UTF8 $LOCALE_DE_UTF8 > in-th-2.out
case $? in
0)
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none && test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ in-th-3/fr in-th-3/$LOCALE_FR
- prepare_locale_ in-th-3/fr in-th-3/$LOCALE_FR_UTF8
../intl-thread-3-prg $LOCALE_FR $LOCALE_FR_UTF8 > in-th-3.out
case $? in
0) ;;
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= LC_ALL=$LOCALE_FR bash ./prog.bash 2 > prog.out || Exit 1
: ${DIFF=diff}
${DIFF} prog.nok prog.out > /dev/null && {
${DIFF} prog.ok prog.out || Exit 1
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 bash ./prog.bash 2 > prog.out || Exit 1
: ${DIFF=diff}
${DIFF} prog.nok prog.out > /dev/null && {
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= ./prog $LOCALE_FR 2 > prog.tmp
case $? in
0) case "$host_os" in
esac
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= ./prog $LOCALE_FR_UTF8 2 > prog.tmp
case $? in
0) case "$host_os" in
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= ./prog $LOCALE_FR 2 > prog.tmp
case $? in
0) case "$host_os" in
esac
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= ./prog $LOCALE_FR_UTF8 2 > prog.tmp
case $? in
0) case "$host_os" in
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= ./prog $LOCALE_FR 2 > prog.tmp
case $? in
0) case "$host_os" in
esac
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= ./prog $LOCALE_FR_UTF8 2 > prog.tmp
case $? in
0) case "$host_os" in
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= ./prog $LOCALE_FR 2 > prog.tmp
case $? in
0) case "$host_os" in
esac
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= ./prog $LOCALE_FR_UTF8 2 > prog.tmp
case $? in
0) case "$host_os" in
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LC_ALL=$LOCALE_FR clisp prog.lisp 2 > prog.tmp || Exit 1
LC_ALL=C tr -d '\r' < prog.tmp > prog.out || Exit 1
${DIFF} prog.ok prog.out || Exit 1
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LC_ALL=$LOCALE_FR_UTF8 clisp prog.lisp 2 > prog.tmp || Exit 1
LC_ALL=C tr -d '\r' < prog.tmp > prog.out || Exit 1
${DIFF} prog.oku prog.out || Exit 1
# locale_charset() or nl_langinfo(CODESET) [which is "ISO8859-1" in this case]
# or "UTF-8" - depending on platform or build configuration. So, allow the
# expected result in UTF-8 encoding here too.
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= LC_ALL=$LOCALE_FR ${CSHARPEXEC} -L ../../../gettext-runtime/intl-csharp program.exe 2 > prog.out || Exit 1
${DIFF} prog.oku prog.out >/dev/null || ${DIFF} prog.ok prog.out || Exit 1
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 ${CSHARPEXEC} -L ../../../gettext-runtime/intl-csharp program.exe 2 > prog.out || Exit 1
${DIFF} prog.oku prog.out || Exit 1
fi
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LC_ALL=$LOCALE_FR LANGUAGE= ./prog 2 > prog.tmp
case $? in
0) case "$host_os" in
esac
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LC_ALL=$LOCALE_FR_UTF8 LANGUAGE= ./prog 2 > prog.tmp
case $? in
0) case "$host_os" in
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= LC_ALL=$LOCALE_FR gawk -v n=2 -f prog.awk > prog.out || Exit 1
${DIFF} prog.ok prog.out || Exit 1
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 gawk -v n=2 -f prog.awk > prog.out || Exit 1
${DIFF} prog.oku prog.out || Exit 1
fi
Exit 77
fi
-prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 ./program 2 > prog.out || Exit 1
${DIFF} prog.ok prog.out || Exit 1
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= LC_ALL=$LOCALE_FR guile -s prog.scm 2 > prog.out 2>prog.err || { cat prog.err 1>&2; Exit 1; }
grep -v '^;;;' prog.err 1>&2
${DIFF} prog.nok prog.out > /dev/null && {
${DIFF} prog.ok prog.out || Exit 1
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 guile -s prog.scm 2 > prog.out 2>prog.err || { cat prog.err 1>&2; Exit 1; }
grep -v '^;;;' prog.err 1>&2
${DIFF} prog.nok prog.out > /dev/null && {
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
: ${JAVAEXEC="/bin/sh ../../javaexec.sh"}
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= LC_ALL=$LOCALE_FR CLASSPATH=.:../../../gettext-runtime/intl-java/libintl.jar ${JAVAEXEC} Program 2 ISO-8859-1 > prog.out || Exit 1
${DIFF} prog.ok prog.out || Exit 1
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 CLASSPATH=.:../../../gettext-runtime/intl-java/libintl.jar ${JAVAEXEC} Program 2 UTF-8 > prog.out || Exit 1
${DIFF} prog.oku prog.out || Exit 1
fi
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= LC_ALL=$LOCALE_FR gjs prog.js > prog.out || Exit 1
${DIFF} prog.ok prog.out || Exit 1
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 gjs prog.js > prog.out || Exit 1
${DIFF} prog.oku prog.out || Exit 1
fi
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= LC_ALL=$LOCALE_FR rep --no-rc --batch prog.jl > prog.out || Exit 1
${DIFF} prog.ok prog.out || Exit 1
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 rep --no-rc --batch prog.jl > prog.out || Exit 1
${DIFF} prog.oku prog.out || Exit 1
fi
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= LC_ALL=$LOCALE_FR lua -l gettext prog.lua > prog.out || Exit 1
${DIFF} prog.ok prog.out || Exit 1
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 lua -l gettext prog.lua > prog.out || Exit 1
${DIFF} prog.oku prog.out || Exit 1
fi
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LC_ALL=$LOCALE_FR LANGUAGE= ./prog 2 > prog.tmp
case $? in
0) case "$host_os" in
esac
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LC_ALL=$LOCALE_FR_UTF8 LANGUAGE= ./prog 2 > prog.tmp
case $? in
0) case "$host_os" in
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= ./prog $LOCALE_FR 2 > prog.tmp
case $? in
0) case "$host_os" in
esac
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= ./prog $LOCALE_FR_UTF8 2 > prog.tmp
case $? in
0) case "$host_os" in
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= LC_ALL= LC_MESSAGES= LC_CTYPE= LANG=$LOCALE_FR ./pascalprog > pascalprog.out || Exit 1
: ${DIFF=diff}
${DIFF} pascalprog.ok pascalprog.out || Exit 1
fi
if test -z "$UTF8_LOCALE_UNSUPPORTED"; then
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= LC_ALL= LC_MESSAGES= LC_CTYPE= LANG=$LOCALE_FR_UTF8 ./pascalprog > pascalprog.out || Exit 1
: ${DIFF=diff}
${DIFF} pascalprog.oku pascalprog.out || Exit 1
darwin* | netbsd*) LOCALE_FR=none ;;
esac
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= LANG=$LOCALE_FR LC_MESSAGES= LC_CTYPE= LC_ALL= perl program1.pl > prog.out || Exit 1
${DIFF} prog.ok prog.out || Exit 1
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= LANG=$LOCALE_FR_UTF8 LC_MESSAGES= LC_CTYPE= LC_ALL= perl program1.pl > prog.out || Exit 1
${DIFF} prog.oku prog.out || Exit 1
fi
darwin* | netbsd*) LOCALE_FR=none ;;
esac
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= LANG=$LOCALE_FR LC_MESSAGES= LC_CTYPE= LC_ALL= perl program2.pl > prog.out || Exit 1
${DIFF} prog.ok prog.out || Exit 1
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= LANG=$LOCALE_FR_UTF8 LC_MESSAGES= LC_CTYPE= LC_ALL= perl program2.pl > prog.out || Exit 1
${DIFF} prog.oku prog.out || Exit 1
fi
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= LC_ALL=$LOCALE_FR php -q prog.php > prog.out || Exit 1
${DIFF} prog.ok prog.out || Exit 1
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 php -q prog.php > prog.out || Exit 1
${DIFF} prog.oku prog.out || Exit 1
fi
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 PYTHONIOENCODING=UTF-8 $PYTHON prog1.py > prog.out || Exit 1
${DIFF} prog.oku prog.out || Exit 1
fi
if test -z "$ISO8859_LOCALE_UNSUPPORTED"; then
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= LC_ALL=$LOCALE_FR PYTHONIOENCODING=ISO-8859-1 $PYTHON prog1.py > prog.out || Exit 1
${DIFF} prog.ok prog.out || Exit 1
fi
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 PYTHONIOENCODING=UTF-8 $PYTHON prog2.py 2 > prog.out || Exit 1
${DIFF} prog.oku prog.out || Exit 1
fi
if test -z "$ISO8859_LOCALE_UNSUPPORTED"; then
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= LC_ALL=$LOCALE_FR PYTHONIOENCODING=ISO-8859-1 $PYTHON prog2.py 2 > prog.out || Exit 1
${DIFF} prog.ok prog.out || Exit 1
fi
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= LC_ALL=$LOCALE_FR ruby prog.rb > prog.out || Exit 1
${DIFF} prog.ok prog.out || Exit 1
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 ruby prog.rb > prog.out || Exit 1
${DIFF} prog.oku prog.out || Exit 1
fi
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= LC_ALL=$LOCALE_FR target/debug/gettext-lang-rust 2 > prog.out1 || Exit 1
${DIFF} prog.ok prog.out1 || Exit 1
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 target/debug/gettext-lang-rust 2 > prog.out2 || Exit 1
${DIFF} prog.ok prog.out2 || Exit 1
fi
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= LC_ALL=$LOCALE_FR sh ./prog.sh 2 > prog.out || Exit 1
${DIFF} prog.ok prog.out || Exit 1
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 sh ./prog.sh 2 > prog.out || Exit 1
${DIFF} prog.oku prog.out || Exit 1
fi
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= LC_ALL=$LOCALE_FR gst -Q prog.st > prog.out || Exit 1
${DIFF} prog.ok prog.out > /dev/null ||
${DIFF} prog.ok2 prog.out > /dev/null ||
{ ${DIFF} prog.ok prog.out; Exit 1; }
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 gst -Q prog.st > prog.out || Exit 1
${DIFF} prog.oku prog.out > /dev/null ||
${DIFF} prog.oku2 prog.out > /dev/null ||
;;
esac
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= LANG=$LOCALE_FR tclsh program.tcl > prog.tmp || Exit 1
LC_ALL=C tr -d '\r' < prog.tmp > prog.out || Exit 1
${DIFF} prog.ok prog.out || Exit 1
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= LANG=$LOCALE_FR_UTF8 tclsh program.tcl > prog.tmp || Exit 1
LC_ALL=C tr -d '\r' < prog.tmp > prog.out || Exit 1
${DIFF} prog.oku prog.out || Exit 1
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LANGUAGE= LC_ALL=$LOCALE_FR ./prog > prog.out
case $? in
0) ${DIFF} prog.ok prog.out || Exit 1;;
esac
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 ./prog > prog.out
case $? in
0) ${DIFF} prog.oku prog.out || Exit 1;;
: ${GETTEXT=gettext}
: ${DIFF=diff}
if test $LOCALE_FR != none; then
- prepare_locale_ fr $LOCALE_FR
LC_ALL=$LOCALE_FR LANGUAGE= TEXTDOMAINDIR=. TEXTDOMAIN=mf-20 \
${GETTEXT} -s 'Sunshine heats.' > mf-20.tmp
LC_ALL=C tr -d '\r' < mf-20.tmp > mf-20.out
${DIFF} mf-20.ok mf-20.out || Exit 1
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ fr $LOCALE_FR_UTF8
LC_ALL=$LOCALE_FR_UTF8 LANGUAGE= TEXTDOMAINDIR=. TEXTDOMAIN=mf-20 \
${GETTEXT} -s 'Sunshine heats.' > mf-20.tmp
LC_ALL=C tr -d '\r' < mf-20.tmp > mf-20.out
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR != none; then
- prepare_locale_ plural-1-dir/fr plural-1-dir/$LOCALE_FR
func_do_test $LOCALE_FR
fi
if test $LOCALE_FR_UTF8 != none; then
- prepare_locale_ plural-1-dir/fr plural-1-dir/$LOCALE_FR_UTF8
func_do_test $LOCALE_FR_UTF8
fi
if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then