purple-remote must encode its output

Bug #693736 reported by Serge Matveenko
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pidgin (Ubuntu)
Expired
Low
Unassigned

Bug Description

Binary package hint: libpurple-bin 1:2.7.3-1ubuntu3.2

Error when redirecting output from purple-remote to file or other program.

$ purple-remote getstatusmessage > 1.txt
Traceback (most recent call last):
  File "/usr/bin/purple-remote", line 239, in <module>
    print output
UnicodeEncodeError: 'ascii' codec can't encode character u'\u266b' in position 0: ordinal not in range(128)

Status message was "♫"

Tags: patch
Revision history for this message
Serge Matveenko (lig) wrote :
description: updated
description: updated
tags: added: patch
Revision history for this message
Ronny Cardona (rcart) wrote :

I can't reproduce the bug using the same version of libpurple-bin and assigning the same status message. Can someone else please try to reproduce it?

Changed in pidgin (Ubuntu):
importance: Undecided → Low
Revision history for this message
Serge Matveenko (lig) wrote :

Ronny, what Python version do you use? Is it Python 3.x?

Revision history for this message
Ronny Cardona (rcart) wrote :

Serge, No, it's not. I'm using Python 2.6.6

Ronny Cardona (rcart)
Changed in pidgin (Ubuntu):
status: New → Incomplete
Revision history for this message
Jani Monoses (jani) wrote :

Serge I cannot reproduce this either.
The character looks garbled if I change the terminal character set to non-UTF8, but it is written correctly to the file.

Is the file you redirect to on a partition mounted with non-UTF character encoding? If you don't redirect you get the right ouput on the screen?

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

I haven't recreated this either. Unsubscribing sponsors for now until we understand under which condition this problem occurs

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for pidgin (Ubuntu) because there has been no activity for 60 days.]

Changed in pidgin (Ubuntu):
status: Incomplete → Expired
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.