UnicodeDecodeError exception in bzr whoami
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Hello everybody, I have a UnicodeDecodeError exception with a twist here. I didn't find a real similar bug already, so I'm submitting this as new bug.
"bzr whoami" crashes upon first call of newly installed bzr on a fresh Ubuntu machine (but I guess this will happen w/ every linux box out there). The funny thing is that my machines' host name is "bartimäus". Yes, with an a umlaut, you've seen that right.
How to reproduce:
- Have a machine w/ "funny" hostname
- Install bzr for the first time on this machine
- Run "bzr whoami"
Expected results:
- bzr should print something like "user@hostname"
Actual results:
- bzr crashes, printing out the UnicodeDecodeError exception (traceback attached)
A regular user may be lost here. Although, a regular user most likely won't install bzr. So please forget this comment.
My locale output:
$ locale
LANG=en_US.UTF-8
LC_CTYPE=
LC_NUMERIC=
LC_TIME=
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
$
ciao, daniel :-)
Changed in bzr: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
We should probably be decoding the socket. gethostname( ) based on something (rather than assuming it is pure ascii).
However, what encoding is the hostname in?