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

Russian characters not displayed #155

Closed
franchesko1437 opened this issue Oct 10, 2017 · 11 comments
Closed

Russian characters not displayed #155

franchesko1437 opened this issue Oct 10, 2017 · 11 comments

Comments

@franchesko1437
Copy link

159494
Levak helps. Why, instead of Russian characters are displayed numbers? Look at the screenshot. How can I fix it?

@Levak
Copy link
Owner

Levak commented Oct 10, 2017

What is your environment? Cygwin? Mingw? GNU/Linux?
See #66

@Levak Levak changed the title Levak helps Russian characters not displayed Oct 10, 2017
@franchesko1437
Copy link
Author

franchesko1437 commented Oct 10, 2017

cygwin
The Russian language is present in the console, but I can not write on it, and instead of the Russian language the figures are displayed

@Levak
Copy link
Owner

Levak commented Oct 10, 2017

Are you using wb_launcher.hta or wb.sh?

@franchesko1437
Copy link
Author

wb_launcher.hta

@Levak
Copy link
Owner

Levak commented Oct 10, 2017

Then do what is indicated in #66

@franchesko1437
Copy link
Author

franchesko1437 commented Oct 10, 2017

You did not understand. The Russian language is displayed, but I can not enter it.
1541 8

@Levak
Copy link
Owner

Levak commented Oct 10, 2017

Have you tried it nonetheless?

@franchesko1437
Copy link
Author

Yes, I tried. See screenshot
849

@Levak
Copy link
Owner

Levak commented Oct 10, 2017

Can you type these characters in the console without warfacebot launched?
Can you type these characters without debug mode? make clean wb

I cannot find any material on Google about this issue linked with Cygwin or readline.
What I do know is that on GNU/Linux there is no problem when typing Cyrillic in the console.

So, from there, it will be your duty to find what's wrong and what can be done. I cannot help here (unless you find a solution and I will integrate it if possible).

@franchesko1437
Copy link
Author

franchesko1437 commented Oct 10, 2017

1.yes
2.NO. symbol. do not enter

https://goo.gl/oNG9qv

@Levak
Copy link
Owner

Levak commented Feb 25, 2018

Ok. I've dug up a little more into the issue and confirm the problem about inputting Unicode into the command prompt.

The issue seems to be a shared problem among all command-line programs under Windows, using cmd.exe. e.g. mintty.exe is said to be exempt of any problem.

I've read around and found no actual fix. The frustrating part is that, indeed, one cannot type any non-ASCII character at all in the prompt, even if these are correctly displayed once in chcp 65001 page.

So, I came up to a simple "idea". If you want to write any command that requires Unicode, open a new text file, put your commands in there, and then run exec yourfile.txt.

PS: By doing this I've identified a bug in the exec command that leads to a crash if a line is empty and wb compiled in non-debug mode. Will try to push a fix soon.

References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants