[issue35883] Change invalid unicode characters to replacement characters in argv

2019-02-01 Thread Neui
New submission from Neui : When an invalid unicode character is given to argv (cli arguments), then python abort()s with an fatal error about an character not in range (ValueError: character U+7fffbeba is not in range [U+; U+10]). I am wondering if this behaviour should change to

[issue35883] Change invalid unicode characters to replacement characters in argv

2019-02-01 Thread Neui
Neui added the comment: I'd say that the terminal is not really relevant here, but rather the locale settings because it uses wide string functions. Prefixing it with LC_ALL=C produces the same output as you had on my Ubuntu machine. I also get that output when running it in Cygwin