Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Console encoding for localized compilers
Console encoding for localized compilers [message #23825] Wed, 25 November 2009 04:48 Go to next message
Shire is currently offline  Shire
Messages: 41
Registered: September 2006
Location: Russia, Yamal peninsula
Member
Not so far Microsoft released Russian version of Visual Studio.
All compiler messages are in russian, and shows as spaces in TheIDE console window.

ide/Console.cpp:
int Console::Flush():
...
>   slot.process->Read(s);
>   if(!IsNull(s)) {
>     done_output = true;
+#ifdef PLATFORM_WIN32
+     s = FromSystemCharset(s);
+#endif
...


This fix can resolve problem, but side effects can appear.
And other localized tools (non-Microsoft, CP866-based) may require FromOEMCharset() function instead.
Re: Console encoding for localized compilers [message #23826 is a reply to message #23825] Wed, 25 November 2009 05:35 Go to previous message
Shire is currently offline  Shire
Messages: 41
Registered: September 2006
Location: Russia, Yamal peninsula
Member
Yes, ARM4 compiler from same Visual Studio requires FromOEMCharset() for it's localized messages...
One way is to add encoding option in "Build methods" page, other way is don't use localized compilers.
Previous Topic: creating DLLs HOWTO ??
Next Topic: Link error GCC32 on ubuntu 8.10 x64
Goto Forum:
  


Current Time: Fri Mar 29 12:43:52 CET 2024

Total time taken to generate the page: 0.01714 seconds