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
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
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
--
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
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
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') # ^| ==
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
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.
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
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 (
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
___
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
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.
13 matches
Mail list logo