[Bug 929399] Re: do-release-upgrade crashed with UnicodeDecodeError in __main__: 'ascii' codec can't decode byte 0xc3 in position 36: ordinal not in range(128)
Steve Langasek
steve.langasek at canonical.com
Sat Feb 25 07:39:11 UTC 2012
I'm not sure this is actually a bug to be fixed. LC_ALL=C means that
LC_CTYPE is also set to C; that's a declaration that you only want ascii
output, but the language setting asks the application to use the German
translation if available - which it obviously is, and evidently contains
non-ascii characters.
So while we could fix the code to avoid a backtrace, none of the
available options seem more correct. Outputting the text in UTF-8 means
ignoring the locale setting; dropping the non-ascii characters means a
garbled translation.
Daniel, is this really an issue specific to do-release-upgrade? Does
other command-line software generally get translated correctly for you
with these settings?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/929399
Title:
do-release-upgrade crashed with UnicodeDecodeError in __main__:
'ascii' codec can't decode byte 0xc3 in position 36: ordinal not in
range(128)
Status in “update-manager” package in Ubuntu:
Triaged
Bug description:
I triggered the crash by running:
LC_ALL=C do-release-upgrade --help
ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: update-manager-core 1:0.156.4
ProcVersionSignature: Ubuntu 3.2.0-14.23-generic 3.2.3
Uname: Linux 3.2.0-14-generic x86_64
ApportVersion: 1.91-0ubuntu1
Architecture: amd64
CheckboxSubmission: 2f383a1679e8525d7196eb2518a1921f
CheckboxSystem: bb422ca46d02494cdbc459927a98bc2f
Date: Thu Feb 9 09:58:58 2012
ExecutablePath: /usr/bin/do-release-upgrade
GsettingsChanges:
com.ubuntu.update-manager first-run false
com.ubuntu.update-manager launch-time 1327602597
com.ubuntu.update-manager window-height 600
com.ubuntu.update-manager window-width 600
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110817)
InterpreterPath: /usr/bin/python2.7
ProcCmdline: /usr/bin/python /usr/bin/do-release-upgrade --help
PythonArgs: ['/usr/bin/do-release-upgrade', '--help']
SourcePackage: update-manager
Title: do-release-upgrade crashed with UnicodeDecodeError in __main__: 'ascii' codec can't decode byte 0xc3 in position 36: ordinal not in range(128)
Traceback:
Traceback (most recent call last):
File "/usr/bin/do-release-upgrade", line 46, in <module>
help=_("Show version and exit").decode(enc))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 36: ordinal not in range(128)
UpgradeStatus: Upgraded to precise on 2012-01-12 (27 days ago)
UserGroups: adm admin audio cdrom dialout lpadmin plugdev sambashare
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/929399/+subscriptions
More information about the foundations-bugs
mailing list