From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eric Hanchrow Newsgroups: gmane.emacs.bugs Subject: Re: base64-decode-region inserts carriage-returns Date: Sat, 08 Jun 2002 21:06:22 GMT Organization: Giganews.Com - Premium News Outsourcing Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <87ptz17a5u.fsf@blarg.net> References: <87u1od7b99.fsf@blarg.net> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1023570563 11535 127.0.0.1 (8 Jun 2002 21:09:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 8 Jun 2002 21:09:23 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17GnSc-0002zv-00 for ; Sat, 08 Jun 2002 23:09:22 +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 17GnSN-000724-00; Sat, 08 Jun 2002 17:09:07 -0400 Original-Received: from chi6-1.relay.mail.uu.net ([199.171.54.98]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 17GnPk-0006s1-00 for ; Sat, 08 Jun 2002 17:06:24 -0400 Original-Received: from bin5.nnrp.aus1.giganews.com by chi6sosrv13.alter.net with ESMTP (peer crosschecked as: bin5-2.nnrp.aus1.giganews.com [216.166.71.55] (may be forged)) id QQmski27479 for ; Sat, 8 Jun 2002 21:06:25 GMT Original-Received: by bin5.nnrp.aus1.giganews.com (8.9.3+Sun/8.9.3) id QAA08695; Sat, 8 Jun 2002 16:06:22 -0500 (CDT) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 16 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-NNTP-Posting-Date: Sat, 08 Jun 2002 16:06:22 CDT Original-X-Trace: sv3-7dsd60k/k985HytH9uok0jd8hwSOOYT2haFtXlkJ3ZjS5yW5B2uJQfo/jhMyR71CsMHp0W1OVGCnspc!ZjaN7T8d9fffcX0KKsCCf4jbkQ+jNSqo3tq29X7qPoL0mKkDuf6WczyIUnk= Original-X-Complaints-To: abuse@GigaNews.Com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly 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:1887 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:1887 I think 'no-conversion is a better suggestion than 'raw-text-unix. And if the Emacs maintainers decide not to change Emacs, I can get along just fine by putting the following in my .emacs: (fset 'builtin-base64-decode-region (symbol-function 'base64-decode-region)) (defun base64-decode-region (beg end) "Just like `builtin-base64-decode-region', but avoids putting spurious carriage-returns in the output." (interactive "r") (builtin-base64-decode-region beg end) (set-buffer-file-coding-system 'no-conversion)) -- PGP Fingerprint: 3E7B A3F3 96CA 8958 ACC5 C8BD 6337 0041 C01C 5276