On Mon, 17 Nov 2014, Fabien Bodard wrote:
> 2014-11-17 22:47 GMT+01:00 Tobias Boege <[email protected]>:
> > 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

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to