[issue24968] Python 3 raises Unicode errors with the xxx.UTF-8 locale

2015-09-01 Thread Roberto Sánchez
Roberto Sánchez added the comment: Ok, that makes sense, besides David pointed me about another opened issue that could help to solve cases like this: http://bugs.python.org/issue15216 If the encoding is wrong because the environment but we can change the initial stream encodings (in stdin/out

[issue24968] Python 3 raises Unicode errors with the xxx.UTF-8 locale

2015-08-31 Thread Nick Coghlan
Nick Coghlan added the comment: Looking again at the *specific* bug report here, I'm moving the resolution to "out of date", as it's actually the one we addressed in 3.5 by enabling surrogateescape by default on all of the standard streams when the OS claims the locale encoding is ASCII, not j

[issue24968] Python 3 raises Unicode errors with the xxx.UTF-8 locale

2015-08-31 Thread R. David Murray
R. David Murray added the comment: I believe there is at least one open issue about Python adopting utf8 as the default instead of ASCII, and in any case, several conversations about how to deal with all this better. This is just one example of a class of issues caused by the ASCII/C posix de

[issue24968] Python 3 raises Unicode errors with the xxx.UTF-8 locale

2015-08-31 Thread Roberto Sánchez
Roberto Sánchez added the comment: OK, I already knew that "It is not a bug", but the scenario seems quite common, connection to a Linux host from a Mac with Terminal.app and different locales (default behavior), so a bit of "magic" when the locale's encoding part is correct would help to deal

[issue24968] Python 3 raises Unicode errors with the xxx.UTF-8 locale

2015-08-31 Thread Nick Coghlan
Nick Coghlan added the comment: CPython inherits this behaviour from glibc's locale handling, so it's potentially worth raising the question further upstream. If anyone wanted to pursue that, looking at http://www.gnu.org/software/libc/development.html suggests to me that the appropriate start

[issue24968] Python 3 raises Unicode errors with the xxx.UTF-8 locale

2015-08-31 Thread STINNER Victor
STINNER Victor added the comment: It's not a bug on Python, but a bug on your system. > New submission from Roberto Sánchez: >     [rob@fedora22 ~]$ locale >     locale: Cannot set LC_CTYPE to default locale: No such file or directory This message means that the chosen locale doesn't exist. >

[issue24968] Python 3 raises Unicode errors with the xxx.UTF-8 locale

2015-08-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +lemburg, loewis, ncoghlan, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailin

[issue24968] Python 3 raises Unicode errors with the xxx.UTF-8 locale

2015-08-31 Thread Roberto Sánchez
New submission from Roberto Sánchez: System: Python 3.4.2 on Linux Fedora 22 This issues is strongly related with: http://bugs.python.org/issue19846 But It isn't exactly the same case. When I connect from my Mac OSX (using Terminal.app) to a Linux host with Fedora through ssh, the terminal se