[Gambas-user] Scrollarea Graphics
Tobias Boege
taboege at ...626...
Sat Nov 29 20:33:49 CET 2014
On Mon, 17 Nov 2014, Fabien Bodard wrote:
> 2014-11-17 22:47 GMT+01:00 Tobias Boege <taboege at ...626...>:
> > On Mon, 17 Nov 2014, Fabien Bodard wrote:
> >> This is the hexdump
> >>
> >
> > Yep, it has those weird 0xd 0xa sequences, a.k.a. Windows-style newlines,
> > which my original file didn't have... Can't be too difficult to make the
> > patch parser resistant to that, as Gambas already supports different line
> > delimiters in the Stream class.
> >
> > Also Sean, sorry for hijacking this thread.
> yes it's that :
> 125: aScan = Scan(.LineInfo, "@@ -* +* @@")
>
> the line finish by \r
>
> so in this case aScan is null..
>
> you can simply do : aScan = Scan(Rtrim(.LineInfo), "@@ -* +* @@")
>
The more I think about it, the less I want to change it. What if someone
creates a patch which correctly contains a \r\n sequence? I just can't
remove the \r at line ends without risking actual data loss. Your problem
was caused by your mail client or something which changed the \n to \r\n.
Regards,
Tobi
--
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
More information about the User
mailing list