Question
I did the upgrade from the December 2001 version of TWiki to the February 2003 version. When I ran the testenv script everything was OK except the following warning:
"Unable to set locale to en_US.ISO-8859-1, actual locale is C - please test your locale settings."
I ran locale -a and the closest thing in my list was en_US.iso885915. I tried to change the setting to this value in TWiki.cfg and got a similar warning.
Any ideas how to set this correctly?
- TWiki version: 01 Feb 2003
- Perl version: 5.6.1
- Web server & version: Apache 1.3.27
- Server OS: RedHat Linux 7.3
- Web browser & version: N/A
- Client OS: N/A
--
MikeBoone - 25 Feb 2003
Answer
You only need to set the locale if you are using non-Roman or accented characters in
WikiWords - if you do, you need to figure out why Perl is not able to set the right locale, it may be a broken locale setup as this definitely works on some Linuxes/Perls.
It's possible that you'll need to use the setting
$localeRegexes = 0 in TWiki.cfg, to turn off use of locales; you can then just specify any accented characters directly.
For more info/discussion, please see
InternationalisationEnhancements.
--
RichardDonkin - 26 Feb 2003
Question
This is my first posting and hope I'm doing it right...
I have the same problem with the "Warning: Unable to set locale to en_US.ISO-8859-1, actual locale is C - please test your locale settings."
Performed the "locale -a" command and "en_US" showed up on the list (with a grunch of other countries). I tried modifying the cfg file and testing with different possible values for the $useLocale:0 or 1 and your suggestion above to change the setting for "$localeRegexes= = 0". It still has the same warning.
Do you have another suggestion or has anybody found a solution that I didn't see as I hunted through all the install and Q&A's? Your help would be greatly appreciated.
Installing TWiki Version: 01 Feb 2003
Virtual Hosting on Apache/linux, Perl version:5.6.0,
Browser: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1
AnitaBrown - 23 May 2003
Hi - you only need the locale stuff if you want to use international characters in
WikiWords, e.g. PommesDeTerreGratinée. Unless you need this, the warning can be ignored - the default is
$useLocale = 0 in TWiki.cfg so locales are only used if you turn them on. The
testenv checks for locales even when the core code is not using them, because it's intended to find out what's working on your platform when installing TWiki, even if you end up not using it.
The docs could definitely be improved - I finished the internationalisation (
I18N) work but then didn't have time to write docs due to a change of role at work in the New Year.
--
RichardDonkin - 23 May 2003