I can still replicate with python2.6 /usr/bin/apport-retrace, but
python2.7 apparently has this fixed. As 2.7 is the default in natty,
I'm closing this now. Thanks!
** Changed in: apport (Ubuntu)
Status: Triaged = Fix Released
--
You received this bug notification because you are a
So it could be a bug in python too?
--
apport-retrace crashed with UnicodeEncodeError in exit()
https://bugs.launchpad.net/bugs/448158
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
Possibly, I'm not an expert about python, and the guys in #python said
that 2.6 write() doesn't support unicode and you have to convert it. I'm
not sure if that's just a workaround or the intended behaviour. 2.7
works fine with unicode btw. and output in python 3 seems to work
differently.
--
It could have a better handle of the no-options and invalid options.
Instead of a error can be something like:
apport-retrace
No options given. Please, use apport-retrace --help to get a complete list of
options.
or
Invalid option. Run apport-retrace --help to get a complete list of
options.
It could have a better handle of the no-options and invalid options.
Instead of a error can be something like:
apport-retrace
No options given. Please, use apport-retrace --help to get a complete list of
options.
or
Invalid option. Run apport-retrace --help to get a complete list of
options.
if no option is given apport prints the following:
$ apport-retrace
Usage: apport-retrace [options] apport problem report | crash ID
apport-retrace: error: incorrect number of arguments; use --help for a
short help
it tries to do exactly that in karmic and lucid too, but seems to crash
with
Ok, after some debugging it turnes out that python2.6
sys.stderr.write() can't handle unicode characters that aren't converted
to bytes first:
sys.stderr.write(str(u'\xfc'))
Traceback (most recent call last):
File stdin, line 1, in module
UnicodeEncodeError: 'ascii' codec can't encode character
Hi,
I had this bug on lucid.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 10.04.1 LTS
Release:10.04
Codename: lucid
$ dpkg -l apport-retrace | grep ii
ii apport-retrace 1.13.3-0ubuntu2
Confirmed by duplicates.
** Visibility changed to: Public
** Changed in: apport (Ubuntu)
Importance: Undecided = Medium
** Changed in: apport (Ubuntu)
Status: New = Confirmed
--
apport-retrace crashed with UnicodeEncodeError in exit()
https://bugs.launchpad.net/bugs/448158
You