Gnus development mailing list
 help / color / mirror / Atom feed
* (wrong-type-argument arrayp nil) in IDNA code
@ 2003-05-07 13:18 Colin Marquardt
  2003-05-07 14:22 ` Simon Josefsson
  0 siblings, 1 reply; 3+ messages in thread
From: Colin Marquardt @ 2003-05-07 13:18 UTC (permalink / raw)


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")
  message-idna-to-ascii-rhs-1("From")
  message-idna-to-ascii-rhs()
  message-generate-headers((From Date (optional . In-Reply-To) Message-ID (optional . User-Agent) (optional . References) From))
  message-setup-1(((To . "") (Subject . "")) nil nil)
  message-setup(((To . "") (Subject . "")) nil nil)
  message-mail()
  gnus-group-mail(nil)
  call-interactively(gnus-group-mail)


I don't have any of the IDN support installed.

gnus-use-idna's value is t
message-use-idna's value is ask

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?

Cheers,
  Colin



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: (wrong-type-argument arrayp nil) in IDNA code
  2003-05-07 13:18 (wrong-type-argument arrayp nil) in IDNA code Colin Marquardt
@ 2003-05-07 14:22 ` Simon Josefsson
  2003-05-07 14:54   ` Colin Marquardt
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Josefsson @ 2003-05-07 14:22 UTC (permalink / raw)
  Cc: ding

Colin Marquardt <c.marquardt@alcatel.de> 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,




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: (wrong-type-argument arrayp nil) in IDNA code
  2003-05-07 14:22 ` Simon Josefsson
@ 2003-05-07 14:54   ` Colin Marquardt
  0 siblings, 0 replies; 3+ messages in thread
From: Colin Marquardt @ 2003-05-07 14:54 UTC (permalink / raw)


Simon Josefsson <jas@extundo.com> writes:

> Colin Marquardt <c.marquardt@alcatel.de> writes:

>> 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:
[...]
> Try this patch:
>
> --- idna.el.~1.3.~	Wed Feb 26 19:26:31 2003
> +++ idna.el	Wed May  7 16:19:55 2003

Thanks, this works.

>> 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.

Right, I dropped it into my goodies directory after you posted them
on g.e.s. but didn't install the command line utility.

Thanks again,
  Colin



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-05-07 14:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-07 13:18 (wrong-type-argument arrayp nil) in IDNA code Colin Marquardt
2003-05-07 14:22 ` Simon Josefsson
2003-05-07 14:54   ` Colin Marquardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).