summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbe Timmerman <abe@ztreet.demon.nl>2007-09-23 03:11:50 +0200
committerH.Merijn Brand <h.m.brand@xs4all.nl>2007-09-23 08:59:52 +0000
commit2a6abc0ef9cf5fdfbc698e8c38a9360f018ec7a3 (patch)
tree81c75929258ad86ff5b12490da9d04f94c9b59e8
parentac09da3b9065d6e75850e3772d9b883653c64a70 (diff)
downloadperl-2a6abc0ef9cf5fdfbc698e8c38a9360f018ec7a3.tar.gz
netbsd's setlocale () doesn't support LC_COLLATE and LC_NUMERIC
Subject: Re: Smoke [5.10.0] 31938 FAIL(F) netbsd 3.1 (i386/1 cpu) Message-ID: <46F5A136.8080000@ztreet.demon.nl> p4raw-id: //depot/perl@31942
-rw-r--r--hints/netbsd.sh9
-rw-r--r--t/uni/overload.t2
2 files changed, 10 insertions, 1 deletions
diff --git a/hints/netbsd.sh b/hints/netbsd.sh
index e82a3d1b30..11fa30cce3 100644
--- a/hints/netbsd.sh
+++ b/hints/netbsd.sh
@@ -103,6 +103,15 @@ case "$osvers" in
;;
esac
+# @20070922: setlocale() doesn't support LC_COLLATE and LC_NUMERIC
+case "$osvers" in
+2.*|3.*|4.*)
+ # next two lines should start at column 0
+locale_cflags='ccflags="$ccflags -DNO_LOCALE_COLLATE -DNO_LOCALE_NUMERIC"'
+sv_cflags='ccflags="$ccflags -DNO_LOCALE_COLLATE"'
+ ;;
+esac
+
# These are obsolete in any netbsd.
d_setrgid="$undef"
d_setruid="$undef"
diff --git a/t/uni/overload.t b/t/uni/overload.t
index e4f4e132ea..a94d453c96 100644
--- a/t/uni/overload.t
+++ b/t/uni/overload.t
@@ -101,7 +101,7 @@ SKIP: {
skip "No setlocale", 24;
} elsif (!setlocale(&POSIX::LC_ALL, "en_GB.ISO8859-1")) {
skip "Could not setlocale to en_GB.ISO8859-1", 24;
- } elsif ($^O eq 'dec_osf' || $^O eq 'VMS') {
+ } elsif ($^O eq 'dec_osf' || $^O eq 'VMS' || $^O eq 'netbsd') {
skip "$^O has broken en_GB.ISO8859-1 locale", 24;
} else {
use locale;