From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63235 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: uudecode barfs on XEmacs Date: Mon, 22 May 2006 19:04:57 +0200 Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1148317607 14525 80.91.229.2 (22 May 2006 17:06:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 May 2006 17:06:47 +0000 (UTC) Cc: Michael Sperber Original-X-From: ding-owner+m11762@lists.math.uh.edu Mon May 22 19:06:44 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FiDrO-0003df-4V for ding-account@gmane.org; Mon, 22 May 2006 19:06:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FiDr5-0002bB-00; Mon, 22 May 2006 12:06:07 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FiDq9-0002b6-00 for ding@lists.math.uh.edu; Mon, 22 May 2006 12:05:09 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1FiDq4-0000T8-4V for ding@lists.math.uh.edu; Mon, 22 May 2006 12:05:09 -0500 Original-Received: from mail.uni-ulm.de ([134.60.1.1]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FiDpy-0004rh-00 for ; Mon, 22 May 2006 19:04:58 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by mail.uni-ulm.de (8.13.6/8.13.6) with ESMTP id k4MH4vMs015098; Mon, 22 May 2006 19:04:57 +0200 (MEST) Original-Received: by bridgekeeper.physik.uni-ulm.de (Postfix, from userid 170) id 3D32111A9B; Mon, 22 May 2006 19:04:57 +0200 (CEST) Original-To: X-Face: /U7=m^"/-Dn61mAl{g9e3>\G5Tp,oEX|V)g2I1hBk\ML;)7A?6cmB-y7y?'NA^J<=oz7syB =(McAwIHgLX!.B?R3X}98d@?>CrT094KLWh]WU4gDpnL/")MS(XoQTv`Oq225uL>+;CpPXo$N5e>N> $tPd-gbB^F{gQS#1ase]XO~D4p4M"3+F-7~u]dy3I?Pb8RO*H-EFeWDUf?Rf,d]pv\Jvh2Cht!A=im yKAS2Z%Ao^;}W/qzMvMm Mail-Followup-To: , Michael Sperber User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) X-DCC-INFN-TO-Metrics: gemini 1233; Body=2 Fuz1=2 Fuz2=2 X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63235 Archived-At: On Sat, May 20 2006, Michael Sperber wrote: > Error while decoding: (invalid-state Bogus value for > `default-process-coding-system' nil) > > Now, I can't say I know what I'm doing (or that this works on GNU > Emacs), but this fixed it for me: > > 2006-05-20 Michael Sperber > > * uudecode.el (uudecode-decode-region-external): Use '(binary > . binary) for `default-process-coding-system' instead of nil to > keep `call-process-region' from barfing. I seem to recall that this (or maybe something similar) has been suggested previously. Yes, here[1] it is. Alas, Stephen neither was sure that it's the right thing to do. But I think making it conditional on (featurep 'xemacs) should be better than the current state, so I added this (in the v5-10 branch; will be synced to the trunk soon): --8<---------------cut here---------------start------------->8--- --- uudecode.el 08 Feb 2006 13:34:07 +0100 6.6.2.6 +++ uudecode.el 22 May 2006 18:53:08 +0200 @@ -100,7 +100,11 @@ (make-temp-name "uu") uudecode-temporary-file-directory)))) (let ((cdir default-directory) - default-process-coding-system) + (default-process-coding-system + (if (featurep 'xemacs) + ;; In XEmacs, `nil' is not a valid coding system. + (binary . binary) + nil))) (unwind-protect (with-temp-buffer (insert "begin 600 " (file-name-nondirectory tempfile) "\n") --8<---------------cut here---------------end--------------->8--- Bye, Reiner. Footnotes: [1] ,----[ http://article.gmane.org/gmane.emacs.gnus.general/60028 ] | sigh* I hate doing this---I don't have very good reason to suppose | this will work for anyone but me---but I don't have time to do it | right. Here's a patch against current XEmacs package CVS, but it | should be pretty close for this ancient protocol. `---- -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/