A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ipython/ipython/issues/1961/ below:

UnicodeDecodeError on directory with unicode chars in prompt · Issue #1961 · ipython/ipython · GitHub

Version: ipython 0.12

With prompt set to:

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:

  1. set above prompt
  2. /home/user $ mkdir č
  3. /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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4