Opened 18 years ago
Last modified 12 years ago
#492 closed defect
Error: unsupported locale setting — at Initial Version
Reported by: | Owned by: | Emmanuel Blot | |
---|---|---|---|
Priority: | normal | Component: | TracFrenchTranslation |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
Hi,
I am trying to install TracFrenchTranslation. I created a separate area for french Trac projects (I have only one standard Trac instance running with a lot of projects). When I start the french Trac, I get the following Python error :
Error: unsupported locale setting
The traceback is :
/www/Web/servers/trac/0.10-french-1005/lib/python2.4/site-packages/trac/web/main.py in dispatch_request(environ={'DOCUMENT_ROOT': '/htdocs/tracfr', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': 'image/gif, image/x-xbitmap, image/jpeg, image/pj...cation/vnd.ms-powerpoint, application/msword, */*', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'fr', 'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_HOST': 'tracfr', 'HTTP_USER_AGENT': 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)', 'PATH': '/usr/bin:/usr/sbin:/sbin', ...}, start_response=<function start_response>)
258 else:
259 if os.name == 'posix':
260 locale.setlocale(locale.LC_ALL, 'fr_FR')
261 elif os.name == 'nt':
262 locale.setlocale(locale.LC_ALL, 'French_France')
global locale = <module 'locale' from '/usr/local/Python/2.4.1/lib/python2.4/locale.pyc'>, locale.setlocale = <function setlocale>, locale.LC_ALL = 65535
/usr/local/Python/2.4.1/lib/python2.4/locale.py in setlocale(category=65535, locale='fr_FR')
377 # convert to string
378 locale = normalize(_build_localename(locale))
379 return _setlocale(category, locale)
380
381 def resetlocale(category=LC_ALL):
global _setlocale = <built-in function setlocale>, category = 65535, locale = 'fr_FR'
Error: unsupported locale setting
args = ('unsupported locale setting',)
I am pretty sure I made something wrong but I cannot figure out why...
Any help appreciated.
Michel