Python3.0.1.1 is not available when system locale is zh_TW.eucTW
"Li, Leeon" <[email protected]> Mon, 1 Jun 2009 02:20:57 +1000
| Newsgroups | gmane.comp.python.internationalization |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============1291292651==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C9E20B.C98C5FDA"
This is a multi-part message in MIME format.
------_=_NextPart_001_01C9E20B.C98C5FDA
Content-Type: text/plain;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable
Dear all,
=20
Have you meet a problem that Python3.0.1.1 is not available when system =
locale is zh_TW.eucTW?
=20
I just downloaded Python3.0.1 source code and compiled it on my Debian =
5.0 Linux using following commands:
root@li-le01-d5:~# ./configure
root@li-le01-d5:~# make
root@li-le01-d5:~# make altinstall
=20
Then I try Python in interactive mod and found the problem. On my =
system, there is not any output and error message in python3.0 console =
when I try to execute some statments. See following screen reaction:
root@li-le01-d5:~# python3.0
Python 3.0.1 (r301:69556, May 26 2009, 19:48:24)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> loacle.getlocale()
>>> help()
>>> exit()
>>>=20
=20
Then I try to execute a script file hello.py.
My script contains only one python statement: print('Hello World!')
On my system, there is not any output and error message also when I run =
"python3.0 hello.py".
root@li-le01-d5:~# locale
LANG=3Dzh_TW.EUC-TW
LC_CTYPE=3D"zh_TW.EUC-TW"
LC_NUMERIC=3D"zh_TW.EUC-TW"
LC_TIME=3D"zh_TW.EUC-TW"
LC_COLLATE=3D"zh_TW.EUC-TW"
LC_MONETARY=3D"zh_TW.EUC-TW"
LC_MESSAGES=3D"zh_TW.EUC-TW"
LC_PAPER=3D"zh_TW.EUC-TW"
LC_NAME=3D"zh_TW.EUC-TW"
LC_ADDRESS=3D"zh_TW.EUC-TW"
LC_TELEPHONE=3D"zh_TW.EUC-TW"
LC_MEASUREMENT=3D"zh_TW.EUC-TW"
LC_IDENTIFICATION=3D"zh_TW.EUC-TW"
LC_ALL=3D
root@li-le01-d5:~# /usr/local/bin/python3.0 hello.py
root@li-le01-d5:~#
=20
Then I witch to zh_TW.utf8 and try it again. The problem does not occur.
root@li-le01-d5:~# LANG=3Dzh_TW.utf8
root@li-le01-d5:~# locale
LANG=3Dzh_TW.utf8
LC_CTYPE=3D"zh_TW.utf8"
LC_NUMERIC=3D"zh_TW.utf8"
LC_TIME=3D"zh_TW.utf8"
LC_COLLATE=3D"zh_TW.utf8"
LC_MONETARY=3D"zh_TW.utf8"
LC_MESSAGES=3D"zh_TW.utf8"
LC_PAPER=3D"zh_TW.utf8"
LC_NAME=3D"zh_TW.utf8"
LC_ADDRESS=3D"zh_TW.utf8"
LC_TELEPHONE=3D"zh_TW.utf8"
LC_MEASUREMENT=3D"zh_TW.utf8"
LC_IDENTIFICATION=3D"zh_TW.utf8"
LC_ALL=3D
root@li-le01-d5:~# /usr/local/bin/python3.0 hello.py
Hello world!
root@li-le01-d5:~#
=20
This problem was also occurs when I try the same steps on HP-UX 11.11, =
SUSE sles10, Ubuntu 9.04.
Have you meet the same problem? Would you please kindly to tell me if I =
missed some steps when I compile Python from source or some env =
variables from shell or some others.
The problem was strange and made me crazy. I am very appreciated if you =
can tell me how to resolve it.
=20
Thank you very much.
Leeon=20
------_=_NextPart_001_01C9E20B.C98C5FDA
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable
<HTML dir=3Dltr><HEAD>=0A=
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dunicode">=0A=
<META content=3D"MSHTML 6.00.2900.5726" name=3DGENERATOR></HEAD>=0A=
<BODY>=0A=
<DIV><FONT face=3DArial color=3D#000000 size=3D2>Dear all,</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>Have you meet a problem that =
Python3.0.1.1 is not available when system locale is =
zh_TW.eucTW?</FONT></DIV>=0A=
<DIV><FONT face=3DArial color=3D#000000 size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial color=3D#000000 size=3D2>I just downloaded =
Python3.0.1 source code and compiled it on my Debian 5.0 Linux using =
following commands:<BR><A =
href=3D"mailto:root@li-le01-d5">root@li-le01-d5</A>:~# ./configure<BR><A =
href=3D"mailto:root@li-le01-d5">root@li-le01-d5</A>:~# make<BR><A =
href=3D"mailto:root@li-le01-d5">root@li-le01-d5</A>:~# make =
altinstall</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial color=3D#000000 size=3D2>Then I try Python in =
interactive mod and found the problem. On my system, there is not any =
output and error message in python3.0 console when I try to execute some =
statments. See following screen reaction:</FONT></DIV>=0A=
<DIV><FONT face=3DArial color=3D#000000 size=3D2><A =
href=3D"mailto:root@li-le01-d5">root@li-le01-d5</A>:~# =
python3.0<BR>Python 3.0.1 (r301:69556, May 26 2009, 19:48:24)<BR>[GCC =
4.3.2] on linux2<BR>Type "help", "copyright", "credits" or "license" for =
more information.<BR>>>> import locale<BR>>>> =
loacle.getlocale()<BR>>>> help()<BR>>>> =
exit()<BR>>>> </FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial color=3D#000000 size=3D2>Then I try to execute a =
script file hello.py.<BR>My script contains only one python statement: =
print('Hello World!')<BR>On my system, there is not any output and error =
message also when I run "python3.0 hello.py".<BR><A =
href=3D"mailto:root@li-le01-d5">root@li-le01-d5</A>:~# =
locale<BR>LANG=3Dzh_TW.EUC-TW<BR>LC_CTYPE=3D"zh_TW.EUC-TW"<BR>LC_NUMERIC=3D=
"zh_TW.EUC-TW"<BR>LC_TIME=3D"zh_TW.EUC-TW"<BR>LC_COLLATE=3D"zh_TW.EUC-TW"=
<BR>LC_MONETARY=3D"zh_TW.EUC-TW"<BR>LC_MESSAGES=3D"zh_TW.EUC-TW"<BR>LC_PA=
PER=3D"zh_TW.EUC-TW"<BR>LC_NAME=3D"zh_TW.EUC-TW"<BR>LC_ADDRESS=3D"zh_TW.E=
UC-TW"<BR>LC_TELEPHONE=3D"zh_TW.EUC-TW"<BR>LC_MEASUREMENT=3D"zh_TW.EUC-TW=
"<BR>LC_IDENTIFICATION=3D"zh_TW.EUC-TW"<BR>LC_ALL=3D<BR><A =
href=3D"mailto:root@li-le01-d5">root@li-le01-d5</A>:~# =
/usr/local/bin/python3.0 hello.py<BR><A =
href=3D"mailto:root@li-le01-d5">root@li-le01-d5</A>:~#</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial color=3D#000000 size=3D2>Then I witch to =
zh_TW.utf8 and try it again. The problem does not occur.<BR><A =
href=3D"mailto:root@li-le01-d5">root@li-le01-d5</A>:~# =
LANG=3Dzh_TW.utf8<BR><A =
href=3D"mailto:root@li-le01-d5">root@li-le01-d5</A>:~# =
locale<BR>LANG=3Dzh_TW.utf8<BR>LC_CTYPE=3D"zh_TW.utf8"<BR>LC_NUMERIC=3D"z=
h_TW.utf8"<BR>LC_TIME=3D"zh_TW.utf8"<BR>LC_COLLATE=3D"zh_TW.utf8"<BR>LC_M=
ONETARY=3D"zh_TW.utf8"<BR>LC_MESSAGES=3D"zh_TW.utf8"<BR>LC_PAPER=3D"zh_TW=
.utf8"<BR>LC_NAME=3D"zh_TW.utf8"<BR>LC_ADDRESS=3D"zh_TW.utf8"<BR>LC_TELEP=
HONE=3D"zh_TW.utf8"<BR>LC_MEASUREMENT=3D"zh_TW.utf8"<BR>LC_IDENTIFICATION=
=3D"zh_TW.utf8"<BR>LC_ALL=3D<BR><A =
href=3D"mailto:root@li-le01-d5">root@li-le01-d5</A>:~# =
/usr/local/bin/python3.0 hello.py<BR>Hello world!<BR><A =
href=3D"mailto:root@li-le01-d5">root@li-le01-d5</A>:~#</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial color=3D#000000 size=3D2>This problem was also =
occurs when I try the same steps on HP-UX 11.11, SUSE sles10, Ubuntu =
9.04.<BR>Have you meet the same problem? Would you please kindly to tell =
me if I missed some steps when I compile Python from source or some env =
variables from shell or some others.<BR>The problem was strange and made =
me crazy. I am very appreciated if you can tell me how to resolve =
it.</FONT></DIV>=0A=
<DIV><FONT face=3DArial color=3D#000000 size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial color=3D#000000 size=3D2>Thank you very =
much.</DIV></FONT>=0A=
<DIV><FONT face=3DArial color=3D#000000 size=3D2>Leeon =
</FONT></DIV></BODY></HTML>
------_=_NextPart_001_01C9E20B.C98C5FDA--
--===============1291292651==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
I18n-sig mailing list
[email protected]
http://mail.python.org/mailman/listinfo/i18n-sig
--===============1291292651==--