bzr: warning: unknown encoding

Angela seasonalplume at gmail.com
Thu Mar 13 16:43:05 GMT 2008


On Thu, Mar 13, 2008 at 12:22 AM, John Arbash Meinel <john at arbash-meinel.com>
wrote:

>
> Well, that would hint to me that "en_US.UTF-8" should work.
>
> I don't know what is setting LC_CTYPE, but I wonder if it isn't being
> carried
> over from your environment. You might try using
>
> unset LC_CTYPE
>
> or possibly setting both "LANG=en_US.UTF-8" and "LC_CTYPE=en_US.UTF-8".
>
> The simple check is to just run:
>
> python -c "import locale; print locale.getpreferredencoding()"
>
> That should print out "UTF-8". If it fails with an exception, then it is
> triggering the same thing which is causing bzrlib to fall back to ASCII.
>

I did the last one, but something doesn't seem right:

[amari at amari ~]
 $ locale
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=
[amari at amari ~]
 $ python -c "import locale; print locale.getpreferredencoding()"

[amari at amari ~]
 $

Obviously nothing outputs from that python snippet. :/

Anyway, I did try setting LC_CTYPE manually, and that fixed things --
LC_CTYPE is set, and bzr doesn't give me encoding errors. That seems to be
weird behavior, but I suppose as long as things work, I'll be happy enough
:)

Thanks, John!


>
> John
> =:->
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (Cygwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFH2AMoJdeBCYSNAAMRAsL6AJ9kLsIkVWv75Z6Xxsy7L9nuF+cIbQCfW99d
> JNrTaNqXj/u3wNdzHDlsGAE=
> =aG1N
> -----END PGP SIGNATURE-----
>



-- 
Angela Sabas, web enthusiast and writer
http://indisguise.org for my work
http://seasonalplume.net for my writing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20080314/1d6cd6aa/attachment.htm 


More information about the bazaar mailing list