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++ Library support » U++ Core » Why Cout() and Cerr() work so different?
Re: Why Cout() and Cerr() work so different? [message #44974 is a reply to message #44973] Wed, 05 August 2015 13:40 Go to previous messageGo to previous message
kov_serg is currently offline  kov_serg
Messages: 37
Registered: August 2008
Location: Russia
Member
Cerr() outputs error message with directory name. It works fine until directory has russian name.
I just not understand why behaviour is different. Should it be same? May be it should be fixed.

ps: Under ubuntu it works fine becase terminal has utf-8 encoding.

#include <Core/Core.h>

using namespace Upp;

CONSOLE_APP_MAIN
{
	CoutUTF8(); // this forces behaviour to be same
	String fn="C:\\АБВ\\list.txt";
	Cout()<<"loading "<<fn<<"\n";
	Cerr()<<"problem "<<fn<<"\n";
}

[Updated on: Wed, 05 August 2015 13:52]

Report message to a moderator

 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [GCC][C++11] error: call of overloaded 'pick(Upp::Any&)' is ambiguous
Next Topic: Dehaviour of DirectoryExists
Goto Forum:
  


Current Time: Wed May 15 00:17:30 CEST 2024

Total time taken to generate the page: 0.01875 seconds