From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: Re: base64-decode-region inserts carriage-returns Date: Mon, 10 Jun 2002 04:14:50 -0600 (MDT) Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <200206101014.g5AAEon01462@aztec.santafe.edu> References: <87u1od7b99.fsf@blarg.net> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1023704139 10764 127.0.0.1 (10 Jun 2002 10:15:39 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 10 Jun 2002 10:15:39 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17HMD4-0002nJ-00 for ; Mon, 10 Jun 2002 12:15:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17HMCs-0004Ap-00; Mon, 10 Jun 2002 06:15:26 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17HMCJ-00043F-00; Mon, 10 Jun 2002 06:14:52 -0400 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.11.6) with ESMTP id g5AAEoQ14527; Mon, 10 Jun 2002 04:14:50 -0600 (MDT) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g5AAEon01462; Mon, 10 Jun 2002 04:14:50 -0600 (MDT) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: offby1@blarg.net In-Reply-To: <87u1od7b99.fsf@blarg.net> (message from Eric Hanchrow on 08 Jun 2002 13:42:42 -0700) Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:1913 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:1913 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 original: 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.