bzr-email fails if committer has non-ascii gecos

Jelmer Vernooij jelmer at samba.org
Tue Aug 27 22:00:51 UTC 2013


Hi Glenn,

On Tue, Aug 27, 2013 at 04:48:15PM -0400, Glenn Morris wrote:
> I noticed that Savannah's bzr-email failed to send an email for one
> particular commit. The commit worked ok, it was just the email that
> failed. Checking the server log (traceback at the end of this message),
> I see what looks like
> 
> https://bugs.launchpad.net/bzr/+bug/659763
> 
> (supposedly fixed in bzr 2.3.4; this is bzr 2.6b2).
> The user does have whoami set; at least bzr log tells me so:
>   revno: 113996
>   committer: Vincent ... at users.sourceforge.net>
> 
> Short of asking the user to change his real name on his Savannah
> account, is there any way to work around this?
> (Maybe some way to convince osutils.get_user_encoding() to return
> 'utf-8' rather than ascii?)
> 
> TIA for any help.
osutils.get_user_encoding() gets the locale to use from your
environment. What does 'locale' output for you? E.g. for me it says:

LANG=en_GB.UTF-8
LANGUAGE=en_GB:en
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=

Cheers,

Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/bazaar/attachments/20130827/9878dd08/attachment.pgp>


More information about the bazaar mailing list