U++ framework
Do not panic. Ask here before giving up.

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: 42
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: Sun Oct 25 09:30:38 GMT+1 2026

Total time taken to generate the page: 0.00705 seconds