Fix: the unicode from U+2000 to U+2FFF could not be gotten #38
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I found some characters between U+2000 and U+2FFF which can not be gotten by ReadRune in Windows.
For example,
∞
andⒹ
.We can see the problem as below. (I did on Windows10)
∞Ⓓ
to the clipboard on the web browser.go run _example/readline.go
( See also nyaosorg/nyagos#390 . And haskell/haskeline#54 may be the similar problem )
I made the test program and saw the strange data from ReadConsoleInput.
I do not understand the reason that those input are given from ReadConsoleInput.
But, I want to fix the problem, so I made the patch for a workaround.
( A better solution may be exist, but I could not find it.)
Would you merge this patch if problems do not exist , @mattn ?