bash error stream redirection issue

Bug #971802 reported by Ewaryst Schulz
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
command-not-found
New
Undecided
Unassigned

Bug Description

I typed 'xclip' in a terminal on ubuntu 11.10 but xclip was not installed, so the terminal gives me "... sudo apt-get install xclip" on stderr, but when I try 'xclip &> /tmp/out' a command-not-found crash message is written to the file at /tmp/out not the text from stderr

command-not-found version: 0.2.44:
terminal is using bash

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

This is caused by python sys.stdout and sys.stderr to revert to ASCI encoding when the streams are redirected, thus breaking on unicode conversion to UTF-8

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.