The issue is caused by the autojump_utils#encode_local that is called by print_local. When I change the print_local to normal python print function, autojump works in Windows.
_Result of autojump.py with printlocal (broken)
b'C:\j\foo'
Result of autojump.py with print (fixed)
C:\j\foo
This issue is happening for tab completion too + other features of autojump.
Debugging information
String before encode_local: C:\j\foo
After encoded with utf-8: b'C:\j\foo'
After encoded with sys.getfilesystemencoding(): b'C:\j\foo'
Value of sys.getfilesystemencoding(): mbcs
Environment
Windows 7 64-bit
Symptom
autojump.txt writing is successful (contains data)
Error message:
autojump: directory foo not found
try autojump --help for more information
The issue is caused by the
autojump_utils#encode_local
that is called byprint_local
. When I change theprint_local
to normal pythonprint
function, autojump works in Windows._Result of autojump.py with printlocal (broken) b'C:\j\foo'
Result of autojump.py with print (fixed) C:\j\foo
This issue is happening for tab completion too + other features of autojump.
Debugging information String before encode_local: C:\j\foo After encoded with utf-8: b'C:\j\foo' After encoded with sys.getfilesystemencoding(): b'C:\j\foo' Value of sys.getfilesystemencoding(): mbcs
Environment Windows 7 64-bit
Symptom autojump.txt writing is successful (contains data) Error message: autojump: directory foo not found try
autojump --help
for more information