joelthelion/autojump — Issue #91: Encoding issue
Author: tnorth
Created: 2012-01-29 22:33:25+00:00
State: open

Posted by Vesa Halttunen on the RedHat bugzilla:

"I changed the current directory (with cd) to a directory that
had its name encoded in ISO-8859-15 while the current locale was UTF-8. The
directory name had the character ä in it (0xe4 in ISO-8859-1)."

Error message:
:utf_8.py:16:decode:UnicodeDecodeError: 'utf8' codec can't decode byte 0xe4 in
position 68: invalid continuation byte
:
:Traceback (most recent call last):
: File "/usr/bin/autojump", line 314, in
: success=shell_utility()
: File "/usr/bin/autojump", line 226, in shell_utility
: dicadd(path_dict, decode(args[-1]))
: File "/usr/bin/autojump", line 69, in decode
: return text.decode(encoding,errors)
: File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
: return codecs.utf_8_decode(input, errors, True)
:UnicodeDecodeError: 'utf8' codec can't decode byte 0xe4 in position 68:
invalid continuation byte
:
:Local variables in innermost frame:
:input:
'/media/f217cada-c236-44a7-850c-51ee16003a3a/Backup/Vesuri/Pictures/j\xe4te'
:errors: 'strict'

Full bug report is here:
https://bugzilla.redhat.com/show_bug.cgi?id=783833