[Bug 1281084] Re: UnicodeDecodeError in is_closing_session

2014-09-17 Thread Daniel Hahler
I can confirm that the patch (adding , encoding='utf-8') from Václav fixes this issue. ** Changed in: apport (Ubuntu) Status: Confirmed = Triaged ** Changed in: apport (Ubuntu) Importance: Undecided = High ** Tags added: patch ** Summary changed: - UnicodeDecodeError in

[Bug 1281084] Re: UnicodeDecodeError in is_closing_session

2014-08-29 Thread Václav Šmilauer
Just adding more evidence: ERROR: apport (pid 23189) Fri Aug 29 21:15:48 2014: called for pid 23182, signal 11, core limit 18446744073709551615 ERROR: apport (pid 23189) Fri Aug 29 21:15:48 2014: ignoring implausibly big core limit, treating as unlimited ERROR: apport (pid 23189) Fri Aug 29

[Bug 1281084] Re: UnicodeDecodeError in is_closing_session

2014-08-29 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: apport (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1281084 Title:

[Bug 1281084] Re: UnicodeDecodeError in is_closing_session

2014-08-29 Thread Václav Šmilauer
Just looking at the approt source, in is_closing_session, the error is here: with open('/proc/%s/environ' % pid) as e: env = e.read().split('\0') This is normally not a problem with python3, but apport runs for some reason with the ascii encoding, which will fail when reading utf-8