diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-10-01 14:55:37 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-10-01 14:55:37 +0000 |
commit | 69af93f87d0de73567cf1975c1164aadaef307c4 (patch) | |
tree | c9dfbe26436cb580b0983189f76ea5702ca913bb /ext | |
parent | 20e513cf85a6f96ec9a4aa09812ad23e77488856 (diff) | |
download | perl-69af93f87d0de73567cf1975c1164aadaef307c4.tar.gz |
Make missing the RADIXCHAR a softer, gentler error.
p4raw-id: //depot/perl@12295
Diffstat (limited to 'ext')
-rw-r--r-- | ext/I18N/Langinfo/Langinfo.t | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/ext/I18N/Langinfo/Langinfo.t b/ext/I18N/Langinfo/Langinfo.t index 4a3fa841af..4dd72139d7 100644 --- a/ext/I18N/Langinfo/Langinfo.t +++ b/ext/I18N/Langinfo/Langinfo.t @@ -14,6 +14,7 @@ BEGIN { use I18N::Langinfo qw(langinfo ABDAY_1 DAY_1 ABMON_1 MON_1 RADIXCHAR); use POSIX qw(setlocale LC_ALL); +use Config; setlocale(LC_ALL, "C"); @@ -31,6 +32,18 @@ print "ok 3\n"; print "not " unless langinfo(MON_1) eq "January"; print "ok 4\n"; -print "not " unless langinfo(RADIXCHAR) eq "."; -print "ok 5\n"; +unless (langinfo(RADIXCHAR) eq ".") { + print "not ok 5 - RADIXCHAR undefined\n"; + if ($Config{d_gnulibc} || $Config{cppsymbols} =~ /GLIBC/) { + print <<EOM; +# +# You are probably using GNU libc. The RADIXCHAR not getting defined +# by I18N::Langinfo is a known problem in some older versions of the +# GNU libc. +# +EOM + } +} else { + print "ok 5\n"; +} |