[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: base64-decode-region inserts carriage-returns

From: Richard Stallman
Subject: Re: base64-decode-region inserts carriage-returns
Date: Mon, 10 Jun 2002 04:14:50 -0600 (MDT)

    Base64-decode the file:

            C-x h M-x base64-decode-region

At this point you should have a buffer with newlines in it.

    Save the decoded version to a different file for comparison with the

            C-x C-w bin.again RET

Since you already arranged to use MSDOS encoding, the file will
be encoded that way.  That seems correct to me.

    Now examine the newly-saved version with od back at the shell:

            od -c /tmp/bin.again 

            you'll now see 0000000 001 002 003  \r  \n 001 002 003  \r  \n

I see no bug here.  base64-decode-region produced the right results;
if you don't want that encoded in MSDOS when you save the file,
you should do something to specify otherwise.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]