SA Bugzilla – Bug 3327
spamd_utf8.t warning
Last modified: 2004-05-09 07:47:03 UTC
t/spamd_utf8........perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). My environment has this set: $ set|egrep 'LANG|LC_ALL' LANG=C
you've upgraded something on your system and "en_US.UTF-8" is no longer supported as a system-wide locale. see: NAME locale-gen -- generates localisation files from templates SYNOPSIS locale-gen DESCRIPTION This manual page documents briefly the locale-gen command. By default, the locale package which provides the base support for local- isation of libc-based programs does not contain usable localisation files for every supported language. This limitation has became necessary because of the substantial size of such files and the large number of languages supported by libc. As a result, Debian uses a special mechanism where we prepare the actual localisation files on the target host and distribute only the templates for them.
> you've upgraded something on your system and "en_US.UTF-8" is no longer > supported as a system-wide locale. see: Okay, maybe this is a documentation bug then if the en_US.UTF-8 locale is required to install SpamAssassin. As a side note: I think we should always be running Perl in the same locale ("en_US.UTF-8" would do) for consistency of tests, what we output is another matter, but that's just a SpamAssassin option.
the test does require the en_US.UTF-8 locale to run; that's what it's testing after all (operation in a UTF-8 locale). perhaps we should inhibit running the test by default, since we can't assume that locale will be available?
> perhaps we should inhibit running the test by default, since we can't assume > that locale will be available? Hmmm... or we could require the locale, or change the test somehow. I think we should try to do something for 3.0.0 if it's not too hard.
ok, r10564 now checked in; this checks to make sure the locale is usable by perl itself first.
I was asked to paste this error message into this bug. t/spamd_utf8................Use of uninitialized value in concatenation (.) or string at t/spamd_utf8.t line 10.
yeah, oops. not sure why that ahdn't shown up for me before. fixed....