From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/52397 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: (wrong-type-argument arrayp nil) in IDNA code Date: Wed, 07 May 2003 16:22:01 +0200 Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052317357 19725 80.91.224.249 (7 May 2003 14:22:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 7 May 2003 14:22:37 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M942@lists.math.uh.edu Wed May 07 16:22:33 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19DPnD-00051r-00 for ; Wed, 07 May 2003 16:21:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19DPoU-0002wL-00; Wed, 07 May 2003 09:22:30 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19DPoN-0002vU-00 for ding@lists.math.uh.edu; Wed, 07 May 2003 09:22:23 -0500 Original-Received: (qmail 58263 invoked by alias); 7 May 2003 14:22:23 -0000 Original-Received: (qmail 58258 invoked from network); 7 May 2003 14:22:22 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by sclp3.sclp.com with SMTP; 7 May 2003 14:22:22 -0000 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.9/8.12.9) with ESMTP id h47EM1B4030667 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Wed, 7 May 2003 16:22:02 +0200 Original-To: Colin Marquardt Mail-Copies-To: nobody X-Payment: hashcash 1.2 0:030507:c.marquardt@alcatel.de:140b0c222ec17f99 X-Hashcash: 0:030507:c.marquardt@alcatel.de:140b0c222ec17f99 X-Payment: hashcash 1.2 0:030507:ding@gnus.org:653e4a1436abd3ba X-Hashcash: 0:030507:ding@gnus.org:653e4a1436abd3ba In-Reply-To: (Colin Marquardt's message of "Wed, 07 May 2003 15:18:22 +0200") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:52397 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:52397 Colin Marquardt writes: > Hi, > > I got the gnus-CURRENT-20030506 CVS snapshot (after running Oort > 0.12 succesfully) and now encounter a problem when wanting to send > mail. Here is the backtrace: > > > Debugger entered--Lisp error: (wrong-type-argument arrayp nil) > substring(nil -1) > (string= (substring string (1- ...)) "\n") > (if (string= (substring string ...) "\n") (substring string 0 (1- ...)) string) > (if (null proc) (error "Cannot start idn application") (idna-to-ascii-response-clear) (process-send-string proc (concat str "\n")) (setq string (idna-to-ascii-response)) (if (string= ... "\n") (substring string 0 ...) string)) > (let ((proc ...) string) (if (null proc) (error "Cannot start idn application") (idna-to-ascii-response-clear) (process-send-string proc ...) (setq string ...) (if ... ... string))) > idna-to-ascii("alcatel.de") Try this patch: --- idna.el.~1.3.~ Wed Feb 26 19:26:31 2003 +++ idna.el Wed May 7 16:19:55 2003 @@ -152,7 +152,7 @@ (idna-to-ascii-response-clear) (process-send-string proc (concat str "\n")) (setq string (idna-to-ascii-response)) - (if (string= (substring string (1- (length string))) "\n") + (if (and string (string= (substring string (1- (length string))) "\n")) (substring string 0 (1- (length string))) string)))) @@ -166,7 +166,7 @@ (idna-to-unicode-response-clear) (process-send-string proc (concat str "\n")) (setq string (idna-to-unicode-response)) - (if (string= (substring string (1- (length string))) "\n") + (if (and string (string= (substring string (1- (length string))) "\n")) (substring string 0 (1- (length string))) string)))) > I don't have any of the IDN support installed. > > gnus-use-idna's value is t I think you have idna.el installed, at least, since gnus-use-idna is nil if you don't. > I guess I can easily customize these variables to be nil, but things > should work out of the box. This is on a Solaris 5.8 machine in case > it matters. I don't think I have anything suspicious in my setup, but > I'm wondering why other people don't have this problem apparently? They probably don't have idna.el installed, or have both idna.el and the idn command line utility installed,