reports crash if user's name is non-ASCII

Bug #1117109 reported by Marius Gedminas on 2013-02-06
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

1. edit ~/.gtimelog/gtimelogrc, specify name = ☻ or anything else with non-ASCII characters
2. start gtimelog
3. try to send a report

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gtimelog/", line 1858, in on_weekly_report_activate
  File "/usr/lib/python2.7/dist-packages/gtimelog/", line 1948, in mail
  File "/usr/lib/python2.7/dist-packages/gtimelog/", line 724, in weekly_report_plain
  File "/usr/lib/python2.7/dist-packages/gtimelog/", line 657, in _plain_report
    print >> output, 'Subject: %s' % subject
  File "/usr/lib/python2.7/", line 691, in write
    return self.writer.write(data)
  File "/usr/lib/python2.7/", line 351, in write
    data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 34: ordinal not in range(128)

Changed in gtimelog:
milestone: none → 0.8.1
status: New → Fix Committed
Changed in gtimelog:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers