Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use arrow keys in scala REPL gives Chinese character #8535

Closed
scabug opened this issue Apr 25, 2014 · 8 comments
Closed

Use arrow keys in scala REPL gives Chinese character #8535

scabug opened this issue Apr 25, 2014 · 8 comments
Labels
Milestone

Comments

@scabug
Copy link

scabug commented Apr 25, 2014

I tried to use the arrow keys in scala but it displays Chinese characters. The below are the output of pressing up, down, left right. I am in Windows English input mode when this happens.

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\Papa>scala
Welcome to Scala version 2.11.0 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_55).
Type in expressions to have them evaluated.
Type :help for more information.

scala> 郒郟郖郙

@scabug
Copy link
Author

scabug commented Apr 25, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8535?orig=1
Reporter: Xu Cheng (pumpump)
Affected Versions: 2.11.0

@scabug
Copy link
Author

scabug commented Apr 30, 2014

Gabriel Forró (gabriel.forro) said:
I am having a very similar problem...Arrow keys are not working in REPL. Getting characters. Not chinese ones :o), but different ones. For example getting ÓH for 'up' arrow, ÓK for 'left' arrow.
The CTRL+P, etc. shortcuts do work.

My environment:
Scala: 2.11.0
Windows: 8.1 Update 1, English
Windows locale settings: Slovak

@scabug
Copy link
Author

scabug commented May 16, 2014

@adriaanm said (edited on May 16, 2014 11:05:39 AM UTC):
Looks like this is fixed upstream: jline/jline2#134
We should upgrade to the jline with that fix, filing a separate issue for that.

@scabug
Copy link
Author

scabug commented May 16, 2014

@adriaanm said (edited on May 16, 2014 11:06:16 AM UTC):
This is a bug in jline. We'll upgrade to a version with the fix as soon as it's available.

@scabug
Copy link
Author

scabug commented Jul 15, 2014

@adriaanm said:
scala/scala#3882

@scabug
Copy link
Author

scabug commented Jul 23, 2014

Eduard Sinelnikov (sinedanat) said (edited on Jul 24, 2014 5:46:55 AM UTC):
I can still reproduce this bug in my environment.
I tried to change code page but without any success.

Screenshot for "up arrow" to repeat the last command:
http://s25.postimg.org/ryuy0yppb/134.png

My environment 1:
Scala: 2.11.1
Windows: Windows XP SP3, Russian
Windows locale settings: Russian

My environment 2:
Scala: 2.11.1
Windows: Windows 7 SP1, Russian
Windows locale settings: Russian

@scabug
Copy link
Author

scabug commented Jul 23, 2014

@som-snytt said:
The fix, if it fixes, would be in 2.11.2.

@scabug
Copy link
Author

scabug commented Jul 24, 2014

Eduard Sinelnikov (sinedanat) said:
I've checked it in version 2.11.2 in 2 my environments:

  • Windows XP SP3
  • Windows 7 SP 1

@scabug scabug closed this as completed Jul 24, 2014
@scabug scabug added this to the 2.11.2 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant