Open ghost opened 6 years ago
Thanks for the input. 👍 Will take a look later.
Hi,
This single line doesn't seem to solve anything on my side, it actually makes things worse:
Канал:
ID профилÑ:
Ðик:
Кредиты: 0
Зашел на канал
Опыт:
Ранг РМ: 0
ВарбакÑÑ‹:
Короны:
Кредиты: 0
Разблокированные предметы:
Уведомление:
СМD#
And still can't type anything. In order to test this, I installed RU locale on my Win10.
?
.setlocale(0, "")
doesn't display RU chars properly (like above) and typing with RU keyboard doesn't accept any input.setlocale(0, NULL)
does display RU chars properly but typing with RU keyboard doesn't accept any input.setlocale()
doesn't display RU chars properly and typing with RU keyboard return ?
I tried to give to setlocale()
things like ru-RU
or ru_RU
, .ACP
, .65001
, .1251
, .850
, none of them led to positive results.
How are you compiling wb? With MINGW or Cygwin?
CygWin. With this function I got the following(I didn't use 1251 or 65001):
Levak, try - setlocale(0, "ru_RU.UTF-8");
Okay? Waiting to accomplish your goal.
CygWin
How are you launching warfacebot? Via Cygwin terminal or using wb_launcher.hta
?
Levak, try - setlocale(0, "ru_RU.UTF-8");
In Cygwin it indeed fixes the input feedback, but cygwin is not the one used to compile public releases. It's Mingw. And with Mingw, no input is possible with RU keyboard.
On Cygwin I also have some sort of bug from the readline, when I press backspace it inputs a space, when I press Delete it inputs a ~
. Trying to update Cygwin at the moment.
I add the line "setlocale(0, "ru_RU.UTF-8");" to the file "wb.c". Create a wb.exe, login via hta-launcher (without 1251), and I have Russian text with Russian input. Create a wb.exe using CYGWIN.
Perhaps you are not working Russian language due to the fact that you have Russian is not present? I have and have my friend the text Russian and core, too,. English also works.
Again.
Cygwin works fine with RU input with your fix (setlocale(0, NULL)
) but, not with Mingw.
In Mingw there is 0 input, and that's the target for public releases.
Same, you might also have colors using Cygwin, while in Mingw there is none.
I'll let this issue open til I figure out what to do exactly with public releases, as publishing Cygwin packages is a no-go for me.
Hi levak, add to file "wb.c" line "setlocale(0,"");" After "int main(DTP, char *argv[])".
You should get:
- This gives Russian input to the console (wb.exe). Sorry about my English.