← Back to team overview

touch-packages team mailing list archive

[Bug 1509136] [NEW] Incorrect codec use, HookError_ubuntu.txt

 

Public bug reported:

Bug #1509020 is the second instance of an apport-reported bug that
includes the following HookError_ubuntu.txt contents:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/report.py", line 197, in _run_hook
    symb['add_info'](report, ui)
  File "/usr/share/apport/general-hooks/ubuntu.py", line 66, in add_info
    check_attachment_for_errors(report, attachment)
  File "/usr/share/apport/general-hooks/ubuntu.py", line 155, in check_attachment_for_errors
    trim_dpkg_log(report)
  File "/usr/share/apport/general-hooks/ubuntu.py", line 440, in trim_dpkg_log
    report['DpkgTerminalLog'] = '\n'.join([str(line.decode('utf-8')) for line in lines])
  File "/usr/share/apport/general-hooks/ubuntu.py", line 440, in <listcomp>
    report['DpkgTerminalLog'] = '\n'.join([str(line.decode('utf-8')) for line in lines])
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 11584: invalid continuation byte

Obviously the specific byte and the position were different in the other
bug report. Apport is assuming some input should be in utf8 but it is a
byte stream instead, one that probably depends upon the user's locale.

Thanks

** Affects: apport (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1509136

Title:
  Incorrect codec use, HookError_ubuntu.txt

Status in apport package in Ubuntu:
  New

Bug description:
  Bug #1509020 is the second instance of an apport-reported bug that
  includes the following HookError_ubuntu.txt contents:

  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/apport/report.py", line 197, in _run_hook
      symb['add_info'](report, ui)
    File "/usr/share/apport/general-hooks/ubuntu.py", line 66, in add_info
      check_attachment_for_errors(report, attachment)
    File "/usr/share/apport/general-hooks/ubuntu.py", line 155, in check_attachment_for_errors
      trim_dpkg_log(report)
    File "/usr/share/apport/general-hooks/ubuntu.py", line 440, in trim_dpkg_log
      report['DpkgTerminalLog'] = '\n'.join([str(line.decode('utf-8')) for line in lines])
    File "/usr/share/apport/general-hooks/ubuntu.py", line 440, in <listcomp>
      report['DpkgTerminalLog'] = '\n'.join([str(line.decode('utf-8')) for line in lines])
  UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 11584: invalid continuation byte

  Obviously the specific byte and the position were different in the
  other bug report. Apport is assuming some input should be in utf8 but
  it is a byte stream instead, one that probably depends upon the user's
  locale.

  Thanks

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1509136/+subscriptions


Follow ups