problem in reading text files

Ben Abbott bpabbott at mac.com
Mon Sep 8 12:59:36 CDT 2008


On Monday, September 08, 2008, at 12:50PM, "John W. Eaton" <jwe at bevo.che.wisc.edu> wrote:
>On  6-Sep-2008, Ben Abbott wrote:
>
>| 
>| On Sep 5, 2008, at 3:11 PM, Yaping Zhou wrote:
>| 
>| > Thank you all for looking at this.
>| >
>| > The text files I sent before were from Perl. After I read your  
>| > discussion about line end characters, I used SciTE to change the  
>| > line end characters to LF and CR. I wasn't able to load any of them  
>| > ( see attachment). I was using 3.0.1 on Windows XP.
>| >
>| > Regards
>| 
>| "load NotOK2_LF.txt" works for me ... I tried both Octave 3.0.1 and  
>| 3.1.51.
>
>I checked in the follwoing changes to my sources.  These should
>probably also be applied to the 3.0.x branch.  I think this should
>allow files containing any combination of LF, CR, or CRLF to be loaded
>properly.  It works for me on a GNU/Linux system and I think it should
>also work on OS X and Windows systems.  But I can't easily check that,
>so it would be helpful if someone could test this patch on those
>systems.
>
>Thanks,
>
>jwe

I just completed a fresh build of the default branch (3.1.51) on Mac OSX 10.5.4. Each of the three versions Zhou attached to his prior email loaded without any problem.

Thanks
Ben


More information about the Bug-octave mailing list