summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/init.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'gettext-tools/tests/init.cfg')
-rw-r--r--gettext-tools/tests/init.cfg14
1 files changed, 14 insertions, 0 deletions
diff --git a/gettext-tools/tests/init.cfg b/gettext-tools/tests/init.cfg
index 6917e72..40ee41f 100644
--- a/gettext-tools/tests/init.cfg
+++ b/gettext-tools/tests/init.cfg
@@ -1,2 +1,16 @@
test -f "./init-env" \
&& . "./init-env"
+
+prepare_locale_ ()
+{
+ # Solaris 11 doesn't strip the CODESET part from the locale name,
+ # when looking for a message catalog. Create a directory link with
+ # CODESET, to work around this.
+ if test "$1" != "$2" && test "$GLIBC2" = no; then
+ case "$host_os" in
+ solaris2.11)
+ cp -R "$1" "$2"
+ ;;
+ esac
+ fi
+}