UnicodeEncodeError on start
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
encuentro |
Fix Released
|
Critical
|
Unassigned |
Bug Description
When launching encuentro from krunner I get:
Traceback (most recent call last):
File "/usr/bin/
from encuentro import main, multiplatform, logger
File "/usr/share/
import xdg # NOQA
File "/usr/share/
print(u"Módulo %r importado ok, versión %r" % (self.module, version))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 1: ordinal not in range(128)
In my .xsession-error. When launching it from a terminal encuentro works as expected.
This seems to be due to the way the print function is being used. When launching encuentro without a terminal the output goes directly to xsession-error, which is a "binary" file, so the string needs to be encoded.
I'm attaching a patch to fix this.
Happy hacking,
Changed in encuentro: | |
importance: | Undecided → Critical |
Changed in encuentro: | |
status: | Fix Committed → Fix Released |
Hola Maximiliano!
Thanks for this report, and the patch!
Fixed this in r299 (using an adapted version of the patch).
Thanks again!