Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Stop TPIPE /EOL removing bad EOLs (and TPIPE changine EOLs)?

May
12,834
163
Fom the help, regarding TPIPE's /EOL's 5th parameter:

Remove (optional) - Whether to remove bad EOLs (default 1)

If I understand that correctly, then it doesn't seem to be working. I have this file (with a bare LF in it).

Code:
v:\> type/x 12.txt
0000 0000 31 61 62 63 0a 64 65 66  32                       1abc.def2

Below, TPIPE /EOF removes that bare LF regardless of the value of it's 5th parameter.

Code:
v:\> tpipe /input=12.txt /output=12.txt.bak /eol=2,0,0,0,0

v:\> type/x 12.txt.bak
0000 0000 31 61 62 63 64 65 66 32                           1abcdef2

v:\> tpipe /input=12.txt /output=12.txt.bak /eol=2,0,0,0,1

v:\> type/x 12.txt.bak
0000 0000 31 61 62 63 64 65 66 32                           1abcdef2

And if I don't even use /EOL, TPIPE will (apparently) change bad EOLs.

Code:
v:\> type/x 12.txt
0000 0000 31 61 62 63 0a 64 65 66  32                       1abc.def2

v:\> tpipe /input=12.txt /output=12.txt.bak /simple=6

v:\> type/x 12.txt.bak
0000 0000 31 61 62 63 0d 0a 64 65  66 32                    1abc..def2

I don't like TPIPE doing something I didn't ask it to do.
 
Hey @vefatica, you are correct about the auto change of EOL, as it is indicated in the log file.
Code:
TextPipe Engine Log File

datetime,level,message
2020-08-10 10:29:01,Info,Log file started
2020-08-10 10:29:01,Info,Filter name []
2020-08-10 10:29:01,Info,Job started by [Joe Caverly]
2020-08-10 10:29:01,Info,Input file [E:\Utils\jlckcalc.txt]  Size: 85,007 bytes
2020-08-10 10:29:01,Info,File input:include binary
2020-08-10 10:29:01,Info,Convert EOL Auto - 1402 changes made
2020-08-10 10:29:01,Info,Display debug window
2020-08-10 10:29:01,Info,1402 line(s) processed
2020-08-10 10:29:01,Info,Output file [C:\Users\JOECAV~1\AppData\Local\Temp\tpi660.tmp]  Size: 90,615 bytes
2020-08-10 10:29:01,Info,Merge to file C:\Users\JOECAV~1\AppData\Local\Temp\tpi660.tmp
2020-08-10 10:29:01,Info,Merge to file C:\Users\JOECAV~1\AppData\Local\Temp\tpi660.tmp
2020-08-10 10:29:01,Info,Files merged to [C:\Users\JOECAV~1\AppData\Local\Temp\tpi660.tmp]
2020-08-10 10:29:01,Info,Job finished. 1 of 1 files processed, 0 binary files skipped, 0 non-binary files skipped

Joe
 

Similar threads

Back
Top