[issue10828] Cannot use nonascii utf8 in names of files imported from

2011-01-08 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Victor: How do I determine what code page my old w2k is using?. python.exe -c 'import locale; print(ANSI code page: {}.format(locale.getpreferredencoding()))' On Windows, #8611 (and #9425) permit to use non-ASCII characters

[issue10828] Cannot use nonascii utf8 in names of files imported from

2011-01-08 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I think bugs in core syntax should have high priority. It took me 7 months to implement the first part (#8611 and #9425). I plan to do the second part (#3080) in Python 3.3 (it's too late for Python 3.2, final is planned for

[issue10828] Cannot use nonascii utf8 in names of files imported from

2011-01-08 Thread ingemar
ingemar inge...@sijohansson.com added the comment: python.exe -c import locale; print('ANSI code page: {}'.format(locale.getpreferredencoding())) ANSI code page: cp1252 python.exe -c import os; fn=os.fsencode('ä'); print(ascii(fn)) b'\xe4' and no error raised --

[issue10828] Cannot use nonascii utf8 in names of files imported from

2011-01-08 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: ANSI code page: cp1252 ...os.fsencode('ä') = b'\xe4' Hum, I ran your example with a debugger, and ok, I now remember the whole thing. I fixed Python to support non-ASCII characters (... only non-ASCII characters encodable to the

[issue10828] Cannot use nonascii utf8 in names of files imported from

2011-01-08 Thread ingemar
ingemar inge...@sijohansson.com added the comment: Thanks Victor for the explanation. Py3 is still far better than Py2, letting me use utf-8 as much as it does. I will be able to live with this bug being known. I can understand though, that people in some places of the world may feel more

[issue10828] Cannot use nonascii utf8 in names of files imported from

2011-01-07 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: (Ingemar: one can easily test import statements without pyqt, let alone qt ;-) With 3.2b2 on our Win7, 64 bit machine, files with a Japanese name run but apparently cannot be imported. a.py: print('something') ^|.py: print('other') # ^| ==

[issue10828] Cannot use nonascii utf8 in names of files imported from

2011-01-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: With 3.2b2 on our Win7, 64 bit machine, files with a Japanese name... What is your ANSI code page? If it is not a japanese code page, it is the issue #3080. On Windows, #8611 (and #9425) permit to use non-ASCII characters in the

[issue10828] Cannot use nonascii utf8 in names of files imported from

2011-01-07 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: ANSI code page? I have no idea how to find out and many would not even know what such a thing exists. It is an HP laptop sold in the US. I think bugs in core syntax should have high priority. I appreciate your work toward fixing it.

[issue10828] Cannot use nonascii utf8 in names of files imported from

2011-01-07 Thread ingemar
ingemar inge...@sijohansson.com added the comment: Terry: Thanks for the hint In a pure ascii path I created files very similar to yours with Swedish ä instead of your katakana character. I also got the same result. a.py: print ('something') ä.py: print ('other') c.py: # -*- coding: utf-8

[issue10828] Cannot use nonascii utf8 in names of files imported from

2011-01-04 Thread ingemar
New submission from ingemar inge...@sijohansson.com: I have a set of programs written for Python3.1 and running well on Kubuntu. The source files are located on a Samba server on a Kubuntu box. Several of the programs contain Python/PyQt code to start other programs in the set (

[issue10828] Cannot use nonascii utf8 in names of files imported from

2011-01-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Have you tried 3.2b2? -- nosy: +haypo, r.david.murray type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10828 ___

[issue10828] Cannot use nonascii utf8 in names of files imported from

2011-01-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I think that this issue is a duplicate of #8611 (and #9425), it should be fixed in Python 3.2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10828

[issue10828] Cannot use nonascii utf8 in names of files imported from

2011-01-04 Thread ingemar
ingemar inge...@sijohansson.com added the comment: Have I tried 3.2b2? No. I will have to wait for 3.2, or more exactly for a Windows installer for PyQt for 3.2 to become available. Compiling that on Windows is beyond my resources and experience. I will make a point to tell you then.