Andres Salomon wrote: [...] > Trac [/usr/local/foo]> component list > > Command failed: unknown encoding: en_gb > > Are others seeing this, or is my bastardized sarge+bpo setup somehow > broken? This is straight trunk, w/ no mysql patches or anything.
Ah, I see: [EMAIL PROTECTED]:~/trac-db-testing$ cat /etc/locale.gen en_US ISO-8859-1 [EMAIL PROTECTED]:~/trac-db-testing$ [EMAIL PROTECTED]:~/trac-db-testing$ export |grep LANG declare -x LANG="en_US" declare -x LANGUAGE="en_US:en_GB:en" [EMAIL PROTECTED]:~/trac-db-testing$ python Python 2.3.5 (#2, Sep 4 2005, 22:01:42) [GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import locale >>> locale.getdefaultlocale() ['en_US', 'en_gb'] >>> (cons_locale, cons_charset) = locale.getdefaultlocale() >>> x = 'foobar' >>> x.encode(cons_charset) Traceback (most recent call last): File "<stdin>", line 1, in ? LookupError: unknown encoding: en_gb I'm not sure what's at fault, here. The only strings that seems to make the encode() method happy are 'ISO8859-1' and 'utf'. 'en', 'en_us', 'en_US', 'en_gb', 'en_GB', 'american', etc all fail. _______________________________________________ Trac-dev mailing list [email protected] http://lists.edgewall.com/mailman/listinfo/trac-dev
