On Wed, 3 Aug 2022 20:33:47 +0100, Colin Paice wrote:
> ...
>However If this is a tagged file eg python file(in ascii) so it has *ls -T
>my.py* of IBM8859-1 , I get the whole file read in ( presumably because
>
IBM8859-1? ISO8859-1? IBM819? Whatever.
What does "ls -THE file" show you?
What does "od -tx1 file | head" show you?
>there were no x15 characters to say end of line)
>
???
>Are there any options I need to specify at fopen/fread/fgets which will
>allow me to read the file line by line.
>
Is autoconversiion enabled at either creation or reading?
>I'm thinking I'll have to read a big chunk from the file, convert ASCII to
>EBCDIC, and search for x15 to split the line up
>
Shouldn't be necessary. jJust
iconv -f ISO8859-1 -t IBM-1047 file
Is UTF-8 in the game?
--
gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN