[BUG] UTF-8 commit message fails.

John Arbash Meinel john at arbash-meinel.com
Sun Oct 8 22:02:36 BST 2006


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

Jean-François Veillette wrote:
> I tried to commit a unicoded message (UTF-8).  To do so, I did :
> 09:58:14: export EDITOR=/Applications/TextEdit.app/Contents/MacOS/TextEdit
> I did that because I still do not know how to enter accented characters
> in emacs, or anything in the Terminal.
> 

...

> 
> ** please send this report to bazaar-ng at lists.ubuntu.com
> 
> - jfv

Thanks for the bug report. The problem is that your Mac configuration
isn't telling us that you are using UTF-8.

I can go into details, but the summary is:

export LANG=xx_XX.UTF-8

(For me xx_XX is LANG=en_US.UTF-8, though I'm guessing yours might be
something like fr_FR.UTF-8).

It seems that the Mac terminal always works in UTF-8, but they have no
configuration which reports that to any programs that are run.

I usually put that line in my ~/.bashrc or ~/.zshrc.

bzr uses your current locale to figure out what format commit
messages/command line parameters/etc are in. So you should be able to
tell it the correct values that way.

Also, if you are using the standard mac terminal, I've been able to type
unicode characters just by using the "alt/option" key in combination
with a letter. alt + c == ç, etc. At least, that is true for my laptop.
(Which I'm typing this email on :)

John
=:->

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

iD8DBQFFKWdsJdeBCYSNAAMRAgWOAKDTkgFrFqwT5kqLMB3dU7wGQ5Y+xgCbBTHE
U9AA2QFXmeKYeNQUE5XEOF0=
=EFKk
-----END PGP SIGNATURE-----





More information about the bazaar mailing list