Boost logo

Boost :

From: boost (boost_at_[hidden])
Date: 2002-07-05 14:11:46


On Friday 05 July 2002 13:41, Paul A. Bristow wrote:

> The reason is that many files contain CR, CR (0x0D, 0x0D)
> rather than CR, LF ( 0x0D, 0x0A) in quite a few places.
> These are invisible to the MS IDE editor and Textpad,
> except in binary display mode. Linux/Microsoft difference?
> After much scratching of my head,
> and eventually removal of tuffs of hair,
> I conclude this produces terminal confusion to the compiler,
> and to me!
 If I remebr correctly, Wordpad should understand it,
at least Word does.

Why not converting them with a small C++ programm

char c;
while( true)
  std::cin >> c;
  if( std::cin.eof() )
  std::cout << c;
  if( int(c) == 0x0d )
  std::cout << char(0x0A);

or something similar.

Best wishes,

Boost list run by bdawes at, gregod at, cpdaniel at, john at