Message7304

Author Arfrever
Recipients Arfrever, fwierzbicki
Date 2012-07-02.00:08:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1341187738.66.0.315777989486.issue1944@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2012-07-02 00:08:58Arfreversetrecipients: + Arfrever, fwierzbicki
2012-07-02 00:08:58Arfreversetmessageid: <1341187738.66.0.315777989486.issue1944@psf.upfronthosting.co.za>
2012-07-02 00:08:58Arfreverlinkissue1944 messages
2012-07-02 00:08:57Arfrevercreate