Public bug reported:

To reproduce:

1. Attempt to paste non-unicode data with a pipe:

    cat ~/.config/pulse/cookie | pastebinit

Result:

Python throwsa Unicode error.

Expected result:

It should work, as it does if you run:

pastebinit ~/.config/pulse/cookie

Impact:

If a program outputs even one invalid ascii/unicode character, the paste
will fail. This is a common problem when porting python 2 apps to python
3.

ProblemType: Crash
DistroRelease: Ubuntu 18.04
Package: pastebinit 1.5-1
ProcVersionSignature: Ubuntu 4.15.0-13.14-generic 4.15.10
Uname: Linux 4.15.0-13-generic x86_64
ApportVersion: 2.20.9-0ubuntu2
Architecture: amd64
Date: Sat Mar 31 15:29:58 2018
ExecutablePath: /usr/bin/pastebinit
InstallationDate: Installed on 2018-03-31 (0 days ago)
InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180331)
InterpreterPath: /usr/bin/python3.6
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/bin/pastebinit
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
 TERM=xterm-256color
 LANGUAGE=en_GB:en
 PATH=(custom, no user)
Python3Details: /usr/bin/python3.6, Python 3.6.5rc1, python3-minimal, 3.6.4-1
PythonArgs: ['/usr/bin/pastebinit']
PythonDetails: /usr/bin/python2.7, Python 2.7.14+, python-minimal, 2.7.14-4
SourcePackage: pastebinit
Title: pastebinit crashed with UnicodeDecodeError in decode(): 'utf-8' codec 
can't decode byte 0xad in position 15319: invalid start byte
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

** Affects: pastebinit (Ubuntu)
     Importance: Medium
         Status: New


** Tags: amd64 apport-crash bionic

** Information type changed from Private to Public

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1760310

Title:
  pastebinit crashed with UnicodeDecodeError in decode(): 'utf-8' codec
  can't decode byte 0xad in position 15319: invalid start byte

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to