Re: getline and CR, LF, CR/LF, VS/Linux
- From: "Stephen Howe" <sjhoweATdialDOTpipexDOTcom>
- Date: Tue, 12 Jul 2005 01:24:35 +0100
> I think a 'text' file is fairly obvious.
No it isn't. There is no standard on what constitutes a text file. There is
nothing "obvious" about it.
For instance CP/M, DOS,Windows commonly use ASCII 26 (Ctrl-Z) to indicate
that a text file has ended (and it comes from CP/M days in the 1970's) where
as UNIX/Linux commonly use ASCII 4 (Ctrl-Z) to indicate that a text file
has ended. That isn't "obvious".
Your experience is coloured by what you know from Windows & Unix.
On other platforms a text file can be vastly different.
Why expect that text files from different OS's should be automatically
handled by C or C++ libraries for a different OS?
You can see this by the accomodations that the old ISO C 1990 standard gives
to text file handling (so that Mini and Mainframe C compilers can be
implemented on hardware that has a lot of limitations).
> I don't care one way or the other.
Right. Fair enough.
But in that case you should refrain from giving your opinion on what is to
blame since you "don't care one way or the other".
Stephen Howe
.
- Follow-Ups:
- Re: getline and CR, LF, CR/LF, VS/Linux
- From: Ian Semmel
- Re: getline and CR, LF, CR/LF, VS/Linux
- From: Stephen Howe
- Re: getline and CR, LF, CR/LF, VS/Linux
- References:
- getline and CR, LF, CR/LF, VS/Linux
- From: Ian Semmel
- Re: getline and CR, LF, CR/LF, VS/Linux
- From: Gene Bushuyev
- Re: getline and CR, LF, CR/LF, VS/Linux
- From: Ian Semmel
- Re: getline and CR, LF, CR/LF, VS/Linux
- From: Bo Persson
- Re: getline and CR, LF, CR/LF, VS/Linux
- From: Ian Semmel
- Re: getline and CR, LF, CR/LF, VS/Linux
- From: r norman
- Re: getline and CR, LF, CR/LF, VS/Linux
- From: Ian Semmel
- getline and CR, LF, CR/LF, VS/Linux
- Prev by Date: Re: getline and CR, LF, CR/LF, VS/Linux
- Next by Date: use remove_if in map
- Previous by thread: Re: getline and CR, LF, CR/LF, VS/Linux
- Next by thread: Re: getline and CR, LF, CR/LF, VS/Linux
- Index(es):
Relevant Pages
|