<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.5726" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#000000 size=2>Dear all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Have you meet a problem that Python3.0.1.1 is not available when system locale is zh_TW.eucTW?</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2>I just downloaded Python3.0.1 source code and compiled it on my Debian 5.0 Linux using following commands:<BR><A href="mailto:root@li-le01-d5">root@li-le01-d5</A>:~# ./configure<BR><A href="mailto:root@li-le01-d5">root@li-le01-d5</A>:~# make<BR><A href="mailto:root@li-le01-d5">root@li-le01-d5</A>:~# make altinstall</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2>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>
<DIV><FONT face=Arial color=#000000 size=2><A href="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>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2>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="mailto:root@li-le01-d5">root@li-le01-d5</A>:~# locale<BR>LANG=zh_TW.EUC-TW<BR>LC_CTYPE="zh_TW.EUC-TW"<BR>LC_NUMERIC="zh_TW.EUC-TW"<BR>LC_TIME="zh_TW.EUC-TW"<BR>LC_COLLATE="zh_TW.EUC-TW"<BR>LC_MONETARY="zh_TW.EUC-TW"<BR>LC_MESSAGES="zh_TW.EUC-TW"<BR>LC_PAPER="zh_TW.EUC-TW"<BR>LC_NAME="zh_TW.EUC-TW"<BR>LC_ADDRESS="zh_TW.EUC-TW"<BR>LC_TELEPHONE="zh_TW.EUC-TW"<BR>LC_MEASUREMENT="zh_TW.EUC-TW"<BR>LC_IDENTIFICATION="zh_TW.EUC-TW"<BR>LC_ALL=<BR><A href="mailto:root@li-le01-d5">root@li-le01-d5</A>:~# /usr/local/bin/python3.0 hello.py<BR><A href="mailto:root@li-le01-d5">root@li-le01-d5</A>:~#</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2>Then I witch to zh_TW.utf8 and try it again. The problem does not occur.<BR><A href="mailto:root@li-le01-d5">root@li-le01-d5</A>:~# LANG=zh_TW.utf8<BR><A href="mailto:root@li-le01-d5">root@li-le01-d5</A>:~# locale<BR>LANG=zh_TW.utf8<BR>LC_CTYPE="zh_TW.utf8"<BR>LC_NUMERIC="zh_TW.utf8"<BR>LC_TIME="zh_TW.utf8"<BR>LC_COLLATE="zh_TW.utf8"<BR>LC_MONETARY="zh_TW.utf8"<BR>LC_MESSAGES="zh_TW.utf8"<BR>LC_PAPER="zh_TW.utf8"<BR>LC_NAME="zh_TW.utf8"<BR>LC_ADDRESS="zh_TW.utf8"<BR>LC_TELEPHONE="zh_TW.utf8"<BR>LC_MEASUREMENT="zh_TW.utf8"<BR>LC_IDENTIFICATION="zh_TW.utf8"<BR>LC_ALL=<BR><A href="mailto:root@li-le01-d5">root@li-le01-d5</A>:~# /usr/local/bin/python3.0 hello.py<BR>Hello world!<BR><A href="mailto:root@li-le01-d5">root@li-le01-d5</A>:~#</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2>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>
<DIV><FONT face=Arial color=#000000 size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2>Thank you very much.</DIV></FONT>
<DIV><FONT face=Arial color=#000000 size=2>Leeon </FONT></DIV></BODY></HTML>