HaxeFoundation / HaxeFoundation/haxe
Invalid String Exception when inputting non-english text in interp mode (Sys.stdin().readLine)
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
I tried making a tool that shortens some repetative code writing using a series of inputs. On of them requires hebrew text.
right after i "submit" the hebrew text, i get the error:
```
Uncaught exception Invalid string
C:\HaxeToolkit\haxe\std/haxe/io/Input.hx:183: characters 8-33 : Called from here
```
Reproducing this is as simple as using the text "ביג מק" with this code:
```haxe
var i = Sys.stdin().readLine();
trace(i);
```
Contributor guide
Research direction
Start by reproducing the issue in interp mode with Sys.stdin().readLine() and the Hebrew text "ביג מק". Inspect haxe/io/Input.hx around line 183 and the interpreter's stdin path; done means the input is accepted and trace(i) prints it without an Invalid string exception.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100