Re: I can only input a character with java.lang.System.console().readline() in Chinese or Japanese language
Sheng Qiang Xu <sqxu <at> cn.ibm.com>
2012-01-29 11:50:23 GMT
Could somebody help to take a look at this?
Thanks.
Best Regards
--------------------
Sean
Sheng Qiang Xu---01/21/2012 01:13:10 AM---Sheng Qiang Xu/China/IBM
Sheng Qiang Xu/China/IBM
01/21/2012 01:13 AM
|
To
|
Johannes Buchner <buchner.johannes <at> gmx.at>, |
cc
|
jython-users <at> lists.sourceforge.net |
Subject
|
Re: [Jython-users] I can only input a character with java.lang.System.console().readline() in Chinese or Japanese language
|
|
Thanks Johannes.
Sorry for late response.
I tried with plain Java andI can input characters. Here is the test file. (See attached file: test.java)
Compile it and run it in windows console
>> java -classspath "." test
However, in the same console, after I start jython console with "java -jar jython.jar "
and run "import java; java.lang.System.console().readLine()",
I can still input only a character and the console echoed what I input, like u'c' ( c is what I input)
Here is my environment:
OS: windows XP sp3
Language: Chinese (same issue in Japanese)
JDK: 1.6
Jython: 2.5.1
Any suggestions are appreciated.
Thanks.
Sean
Johannes Buchner ---2012/01/18 18:03:09---On 01/18/12 04:17, Sheng Qiang Xu wrote:
Johannes Buchner <buchner.johannes <at> gmx.at>
2012/01/18 18:01
|
To
|
jython-users <at> lists.sourceforge.net |
cc
|
|
Subject
|
Re: [Jython-users] I can only input a character with java.lang.System.console().readline() in Chinese or Japanese language |
|
On 01/18/12 04:17, Sheng Qiang Xu wrote:
> I'm using jython 2.5.1 and my OS is windows XP and language is
> Chinese.
>
> When using java.lang.System.console().readline() to input text, I
> can only input a character (the behavior seems like pressing enter)
> and the console jumps to next line.
>
> Could somebody pls help to take a look at this?
Does the same happen with plain Java? If yes, please file a bug for Java.
Cheers,
Johannes
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Jython-users mailing list
Jython-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users





------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Jython-users mailing list
Jython-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users