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: Other Features Wishlist and/or Bugs » [solved] TheIDE "Run Options..." bug
Re: TheIDE "Run Options..." bug [message #43625 is a reply to message #43624] Mon, 15 September 2014 19:16 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
During my day of testing, I found that it is near impossible to write Utf16 to the console and maintain the ability to reroute the output.

Also what I found on Google suggests that the only way it works (and it does; I tested) is to set Utf8 console output and write raw Utf8 without BOM.

My API is almost identical to Cout().

So while Cout may be changed, just adding an option for TheIDE to not convert that output to whatever encoding it uses should help.

Currently, I can reproduce with these test cases:
1. Cout() like stream, Utf8 console, Utf8 write, Run from TheIDE on cmd.exe. Works.
2. Cout() like stream, Utf8 console, Utf8 write, Run from cmd.exe with redirection (i.e. text.exe > out.txt). Works.
3. Cout() like stream, Utf8 console, Utf8 write, Run from with "File" option. Does not work.

AFAIK WriteConsole does not redirect. It did not for me.

[Updated on: Mon, 15 September 2014 19:17]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Random line breaks
Next Topic: What is the purpose of "GCC.bm.in" in tarbals?
Goto Forum:
  


Current Time: Mon Apr 29 18:54:56 CEST 2024

Total time taken to generate the page: 0.01945 seconds