You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
c.PromptManager.in_template = u'\r \w \$ ' # \r needed so prompt doesn't hang in the middle in some cases,
# \w prints current dir,
# u"←string modifier" doesn't really help at all
when I try to cd into a directory with unicode character in its name, a UnicodeDecodeError gets thrown.
How to reproduce:
set above prompt
/home/user $ mkdir č
/home/user $ cd č
Expected: /home/user/č
Instead: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 9: ordinal not in range(128)
Remarks:
With no \w in prompt, it works as expected.
The text was updated successfully, but these errors were encountered:
yup, I'm reading through some old bugs now (got more to report :P), and it seems allos.getwd() calls should instead be os.getcwdu() (perhaps always and in all international apps).
Version: ipython 0.12
With prompt set to:
when I try to cd into a directory with unicode character in its name, a UnicodeDecodeError gets thrown.
How to reproduce:
/home/user $ mkdir č
/home/user $ cd č
Expected:
/home/user/č
Instead:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 9: ordinal not in range(128)
Remarks:
With no \w in prompt, it works as expected.
The text was updated successfully, but these errors were encountered: