This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: std::cin, std::cerr, std::clog behaviour


Nathan Myers <ncm-nospam@cantrip.org> writes:

| On Fri, Oct 24, 2003 at 10:12:08AM +1000, Gary Hughes wrote:
| > I have recently upgraded from gcc 2.9.3 to gcc 3.3 and have noticed a
| > difference in the behaviour of these streams I was not expecting.
| > 
| > Under 2.95.3 writing a string such as "blah blah" to any of these streams
| > would result in a single call to write(). Under 3.3 this behaviour is the
| > same for std::cout, but std::cerr and std::clog call write() for each
| > character in the string.
| 
| Does your program call std::ios::sync_with_stdio(false) before
| performing any I/O?

Regardless of that, I do not believe the behaviour of std::clog is
acceptable.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]