jed-users mailing list

[2003 Date Index] [2003 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: (toggle_crmod)


On Mon, Dec 08, 2003 at 12:59:49AM -0500, John E. Davis wrote:
: 
: So you are saying that the numbers should be:
: 
:      install.bin         40294195
:      install.bin (w/C)   40293390
:      install.bin (w/o C) 40499456
: 
: I still claim that your file has some lines that end with CR/NL and
: some that end in just NL.  When jed originally saved it (w/o C), it
: saved it with all lines with CR/NL endings.  This added extra bytes to
: the file.  Then, when you ran the toggle_crmode function, jed
: converted the file to a standard unix format with NL endings.  This
: resulted in a smaller file size.  If you do not want jed to change the
: line endings, then you should load the file as a binary file via the
: "find_binary_file" function.  The default mode for such a file is
: overwrite mode.  You will want to run the "toggle_overwrite" function
: for that.
:
: However, I remain convinced that you have a file that has a mixture of
: Unix and DOS/Windows line endings.  You may want to run something like
: dos2unix to convert the file to a unix format.  After doing so, you
: should find the result is the same as the (w/C) form above.

Thank you!!!  The "find_binary_file" option worked like a champ.  I
don't disagree that the file probably has a mixture of line endings.
The unfortunate part is that it checksums its size, thus the need to
ensure that it ends up w/the same byte-count after editing as before.

        --Jerry
        
-- 
"Geteilte freud' ist doppelt freude"
        -- Christoph August Tiedge

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2003 date index] [2003 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]