>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:

Lars> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: |
Lars> The following patch is adapted from one of the last bits in the
Lars> patch | that Claus Hentschel uses on win32. It fixes parsing of
Lars> log files by | removing trailing \r.
Lars> | 
Lars> | OK to apply?

Lars> Not sure...

Lars> I am not sure why this patch is needed. I thought that a
Lars> standard conforming ifstream + getline would remove the line
Lars> ending on the system it runs. Thus in the case of win32 it
Lars> should remove \r\n.

Lars> If this is not the case all win users will have problems using
Lars> iostreams...

Lars> so let's check a bit...

I agree that a solution to remove \r automatically would be better.
Note however that we are doing something similar already in l_getline
(see tabular_funcs.C).

JMarc

Reply via email to