Issue1944

classification
Title: Opening of /dev/null or /dev/zero with "w" mode fails in non-English locales
Type: Severity: normal
Components: Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Arfrever, fwierzbicki
Priority: Keywords:

Created on 2012-07-02.00:08:58 by Arfrever, last changed 2013-02-27.20:11:09 by Arfrever.

Messages
msg7304 (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) Date: 2012-07-02.00:08:57
Opening of e.g. /dev/null or /dev/zero with "w" mode fails in non-English locales.
("Argument invalide" is "Bad argument" in English locale.)

$ LC_ALL="en_US.UTF-8" jython2.5 -c 'open("/dev/null", "w")'
$ LC_ALL="en_US.UTF-8" jython2.7 -c 'open("/dev/null", "w")'
$ LC_ALL="fr_FR.UTF-8" jython2.5 -c 'open("/dev/null", "w")'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
IOError: Argument invalide
$ LC_ALL="fr_FR.UTF-8" jython2.7 -c 'open("/dev/null", "w")'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
IOError: Argument invalide
msg7848 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2013-02-27.18:23:11
Arfrever: does this still fail for you? I know we've made some locale fixes so maybe this has been addressed?
msg7859 (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) Date: 2013-02-27.20:11:09
Bug is still present.
History
Date User Action Args
2013-02-27 20:11:09Arfreversetmessages: + msg7859
2013-02-27 18:23:11fwierzbickisetmessages: + msg7848
2012-07-02 00:08:58Arfrevercreate