[issue25359] io.open() fails to open ascii file if LANG env not set

2017-09-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Possible related issues: issue6393 and issue30409. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue25359] io.open() fails to open ascii file if LANG env not set

2017-09-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4954b8dc5305de72ce618522522a2910c3a34126 by Serhiy Storchaka in branch '2.7': [2.7] bpo-25359: Add missed "goto error" after setting an exception. (GH-3712) (#3779) https://github.com/python/cpython/commit/4954b8dc5305de72ce618522522a2910c3a34

[issue25359] io.open() fails to open ascii file if LANG env not set

2017-09-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +3766 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue25359] io.open() fails to open ascii file if LANG env not set

2017-09-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7e32cee1a68a489c4f2e916ac7003004b51887de by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': [3.6] bpo-25359: Add missed "goto error" after setting an exception. (GH-3712) (#3714) https://github.com/python/cpython/commit/7e32cee1a68a489

[issue25359] io.open() fails to open ascii file if LANG env not set

2017-09-23 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3699 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue25359] io.open() fails to open ascii file if LANG env not set

2017-09-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d6238a76c655e0feb13478505220dc9049f1682f by Serhiy Storchaka in branch 'master': bpo-25359: Add missed "goto error" after setting an exception. (#3712) https://github.com/python/cpython/commit/d6238a76c655e0feb13478505220dc9049f1682f -

[issue25359] io.open() fails to open ascii file if LANG env not set

2017-09-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are few issues here. 1. Missed "goto error" after setting an exception in TextIOWrapper constructor. This leads to raising wrong and less informative exception (and maybe worse in Python 3, but this is harder to reproduce). 2. getpreferredencoding() c

[issue25359] io.open() fails to open ascii file if LANG env not set

2017-09-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch pull_requests: +3697 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue25359] io.open() fails to open ascii file if LANG env not set

2015-10-12 Thread L
L added the comment: Type changed from cash to behavior. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue25359] io.open() fails to open ascii file if LANG env not set

2015-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please don't change the type of the issue to "crash". This is different type of issues. See classification in https://docs.python.org/devguide/triaging.html#type. -- type: crash -> behavior ___ Python tracker

[issue25359] io.open() fails to open ascii file if LANG env not set

2015-10-12 Thread R. David Murray
R. David Murray added the comment: Well, it might be a bug in libintl, but it would be a good idea to investigate further before reporting it upstream to them. And we may want to deal with the possibility of a blank return regardless. -- ___ Python

[issue25359] io.open() fails to open ascii file if LANG env not set

2015-10-12 Thread L
L added the comment: Should I submit elsewhere? -- type: behavior -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue25359] io.open() fails to open ascii file if LANG env not set

2015-10-12 Thread Ned Deily
Ned Deily added the comment: I can reproduce the problem using the MacPorts python2.7 but not the Apple-supplied Python 2.7 or the python.org one. The difference seems to be that the MacPorts Python is built with the MacPorts-supplied GNU gettext and its libintl, whereas the others aren't (si

[issue25359] io.open() fails to open ascii file if LANG env not set

2015-10-12 Thread L
L added the comment: The difference, and I believe the crux of the issue is that locale.getprefferedencoding() is still returning and encoding for you, mine returns and emtpy str. Do you have any other envs set that getprefferedencoding my be using: 'LANGUAGE', 'LC_ALL', 'LC_CTYPE', and 'LANG

[issue25359] io.open() fails to open ascii file if LANG env not set

2015-10-12 Thread R. David Murray
R. David Murray added the comment: I cannot reproduce this on 10.10.3: rdmurray@intel-vm-buildbot:~>sw_vers ProductName:Mac OS X ProductVersion: 10.10.3 BuildVersion: 14D136 rdmurray@intel-vm-buildbot:~>LANG=en_us.UTF-8 python temp Local pref: UTF-8 LANG env: en_us.UTF-8 LLL

[issue25359] io.open() fails to open ascii file if LANG env not set

2015-10-12 Thread R. David Murray
Changes by R. David Murray : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue25359] io.open() fails to open ascii file if LANG env not set

2015-10-12 Thread L
L added the comment: Mac OSX 10.8.5 Python 2.7.10 installed via macports $ python2.7 io.openBugEx.py Local pref: UTF-8 LANG env: en_US.UTF-8 Local pref: LANG env has key: False Traceback (most recent call last): File "io.openBugEx.py", line 21,

[issue25359] io.open() fails to open ascii file if LANG env not set

2015-10-09 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Can't reproduce on Linux. $ python2.7 io.openBugEx.py Local pref: UTF-8 LANG env: uk_UA.utf8 Local pref: ANSI_X3.4-1968 LANG env has key: False ANSI_X3.4-1968 What

[issue25359] io.open() fails to open ascii file if LANG env not set

2015-10-09 Thread L
Changes by L : -- components: IO files: io.openBugEx.py nosy: sentinel priority: normal severity: normal status: open title: io.open() fails to open ascii file if LANG env not set type: crash versions: Python 2.7 Added file: http://bugs.python.org/file40737/io.openBugEx.py _