[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: io:lines() and \0
- From: Sean Conner <sean@...>
- Date: Thu, 20 Feb 2014 17:03:21 -0500
It was thus said that the Great René Rebe once stated:
>
> The next time you parse a text file which accidental has a \0 somewhere
> you probably want this bug fix, too ;-) Especially after you spend hours
> to figure out what is going on, …
You would have had the same trouble with C if you used fgets().
And could you tell me what tool created a text file with embedded NULs in
it? I want to avoid using said tool ...
-spc (Besides, when I get odd results with a text file, my first course of
action is to do a hex dump on the "text" file ... )
- References:
- Re: io:lines() and \0, Enrico Colombini
- Re: io:lines() and \0, steve donovan
- Re: io:lines() and \0, René Rebe
- Re: io:lines() and \0, Sean Conner
- Re: io:lines() and \0, Roberto Ierusalimschy
- Re: io:lines() and \0, René Rebe
- Re: io:lines() and \0, Cezary H. Noweta
- Re: io:lines() and \0, René Rebe
- Re: io:lines() and \0, Dirk Laurie
- Re: io:lines() and \0, René Rebe