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

2011-01-08 Thread ingemar
ingemar 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 concerned. -- ___

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

2011-01-08 Thread STINNER Victor
STINNER Victor 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 ANSI code page for Windows)

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

2011-01-08 Thread ingemar
ingemar 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 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 February 5, 2011). I already hav

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

2011-01-08 Thread STINNER Victor
STINNER Victor 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 > in the module path... but

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

2011-01-07 Thread ingemar
ingemar 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 -*- import a import ä I

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

2011-01-07 Thread Terry J. Reedy
Terry J. Reedy 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. -- versions: +P

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

2011-01-07 Thread STINNER Victor
STINNER Victor 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 module path... but only cha

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

2011-01-07 Thread Terry J. Reedy
Terry J. Reedy 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') # ^| == imitation of kataka

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

2011-01-04 Thread ingemar
ingemar 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. --

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

2011-01-04 Thread STINNER Victor
STINNER Victor 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 ___ _

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

2011-01-04 Thread R. David Murray
R. David Murray added the comment: Have you tried 3.2b2? -- nosy: +haypo, r.david.murray type: -> behavior ___ Python tracker ___ __

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

2011-01-04 Thread ingemar
New submission from ingemar : 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 ( QtCore.QProcess().startDetached(k