Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
catch another unconditional encode in completerlib
  • Loading branch information
minrk committed Jun 28, 2011
1 parent 78df894 commit 85859d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion IPython/core/completerlib.py
Expand Up @@ -68,7 +68,8 @@ def shlex_split(x):

# shlex.split has unicode bugs, so encode first to str
if isinstance(x, unicode):
x = x.encode(sys.stdin.encoding)
# don't raise errors on encoding:
x = x.encode(sys.stdin.encoding or sys.getdefaultencoding(), 'replace')

endofline = []
while x != '':
Expand Down

0 comments on commit 85859d3

Please sign in to comment.