Re: [Rd] [Bug report] Chinese characters are not handled correctly in Rterm for Windows

2018-05-07 Thread Azure
Hi Tomas, The crash is no longer happening on Windows 10 16299 (R-devel 74699). I have seen your fix in trunk@74693, which replaced ReadConsoleInputA with the -W alternative. Then I tested the A version on Win10 16299 and Win7 7600 with this code [ https://paste.ubuntu.com/p/Ggm6867yFC/ ]. The

Re: [Rd] [Bug report] Chinese characters are not handled correctly in Rterm for Windows

2018-05-04 Thread Tomas Kalibera
Thanks for the update. I believe I've fixed a part of the problem you have reported, the crash while entering Chinese characters to the console (e.g. via Pinyin, the error message about invalid multibyte character in mbcs_get_next). The fix is in R-devel 74693 - Windows function ReadConsoleIn

[Rd] [Bug report] Chinese characters are not handled correctly in Rterm for Windows

2018-04-28 Thread Azure
Hi Tomas, Sorry for the delayed response. I have tested the problem on the latest R-devel build (2018-04-27 r74651), and it still exists. RGui is always fine with Chinese characters, but some IDEs rely on the CLI version of R (e.g. Visual Studio Code with R plugin). >Your example print("ABC\u

Re: [Rd] [Bug report] Chinese characters are not handled correctly in Rterm for Windows

2018-04-05 Thread Tomas Kalibera
Thank you for the report and initial debugging. I am not sure what is going wrong, we may have to rely on your help to debug this (I do not have a system to reproduce on). A user-targeted advice would be to use RGui (Rgui.exe). Does the problem also exist in R-devel? https://cran.r-project.org

[Rd] [Bug report] Chinese characters are not handled correctly in Rterm for Windows

2018-03-08 Thread Azure
Hello everyone, I am new to R and I have experienced some bugs when using Rterm on Windows. Chinese characters in the console output are discarded by Rterm, and trying to type them into the console will crash the Rterm application. ---ENVIRONMENT--- Platform = x86_64-w64-mingw32 OS = Window