|
|
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 |
|
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
|
|
|
|
|
|
Goto Forum:
Current Time: Sat Oct 05 11:50:09 CEST 2024
Total time taken to generate the page: 0.02002 seconds
|
|
|