allow Unicode Command-Line options #310

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
3 participants
Owner

minrk commented Mar 25, 2011

This fixes a couple of unicode-related bugs from the command-line

Of particular note is that (in config/loader.py) argparse.parse_args will now always get a list of unicode objects, and never strs.

There is also a fix in InteractiveShell._safe_exec_file, where execfile (at least in 2.6.1) does not encode with the filesystemencoding, but rather the defaultencoding, so a unicode string will raise a UnicodeEncodeError.

Things that should now work that did not before:

ipython -p épsiløn
ipython ømqtést.py
Owner

takluyver commented Mar 25, 2011

Looks good to me. Specifying ipython -p test€ works in Linux with this.

Owner

fperez commented Mar 25, 2011

Merge away, great!

Owner

minrk commented Mar 25, 2011

Merge unicode-command-line fixes

closed by 14b9125

minrk closed this Mar 25, 2011

@markvoorhies markvoorhies pushed a commit to markvoorhies/ipython that referenced this pull request Apr 21, 2011

@minrk minrk Merge unicode-command-line fixes
closes gh-310
14b9125

@mattvonrocketstein mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014

@minrk minrk Merge unicode-command-line fixes
closes gh-310
181311d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment