unknown encoding

John Arbash Meinel john at arbash-meinel.com
Thu Mar 15 14:49:28 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Adam Mercer wrote:
> On 15/03/07, Martin Pool <mbp at sourcefrog.net> wrote:
> 
> Hi

...

>> This is because your locale setting is not supported by your python
>> installation.   Can you tell us the output of the 'locale' command and
>> the setting of $LANG?
> 
> [ram at skymoo ram]$ locale
> LANG="en_GB"
> LC_COLLATE="en_GB"
> LC_CTYPE="en_GB"
> LC_MESSAGES="en_GB"
> LC_MONETARY="en_GB"
> LC_NUMERIC="en_GB"
> LC_TIME="en_GB"
> LC_ALL="en_GB"
> [ram at skymoo ram]$ echo $LANG
> en_GB
> 
>> The quickest way to get going is probably to do
>>
>>   export LANG=C
> 
> Thanks, that get rid of the warning.
> 
>> someone more familiar with macs might be able to follow up...
> 
> Cheers
> 
> Adam


On Mac, you almost definitely want to use UTF-8 encoding, since the
terminal is utf8, as is the filesystem. So if you do:

export LANG="en_GB.UTF-8"

I put this in my .zshrc and .bashrc files. So that when I start the
terminal, it sets up everything correctly.

You may want to set some of the other ones, too. I'm a little surprised
to see LC_ALL set, since usually that is the "override everything for
this command" env var.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF+Vz3JdeBCYSNAAMRAviLAJ9G8WVT+dEjtA9BLgmGorLXcjlaSgCfQw0g
3/8pJ8QbZUzi7WwB7k/ch+A=
=Bi/R
-----END PGP SIGNATURE-----



More information about the bazaar mailing list