GNU bug report logs - #26315
24.4; mail-header-parse-addres/ietf-drums-parse-address fails on UTF-8 string

Previous Next

Package: emacs;

Reported by: Łukasz Stelmach <steelman <at> post.pl>

Date: Thu, 30 Mar 2017 19:18:02 UTC

Severity: normal

Found in version 24.4

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 26315 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Łukasz Stelmach <steelman <at> post.pl>
Cc: 26315 <at> debbugs.gnu.org
Subject: Re: bug#26315: 24.4;
 mail-header-parse-addres/ietf-drums-parse-address fails on UTF-8
 string
Date: Thu, 30 Mar 2017 23:32:25 +0300
> From: Łukasz Stelmach <steelman <at> post.pl>
> Date: Thu, 30 Mar 2017 21:17:00 +0200
> 
> Running the following lisp code:
> 
>     (mail-header-parse-address "Łukasz Stelmach <steelman <at> post.pl>")
> 
> yields the error message:
> 
>     Unknown symbol: Ł
> 
> and the invalid result:
> 
>     ("steelman <at> post.pl" . "ukasz Stelmach")
> 
> As far as I can tell this happens if the first character of the address
> string is an UTF-8 (non-ascii?) one.

Why are you using that function?  It assumes the non-ASCII characters
were rfc2047-encoded.

I suggest to use mail-extract-address-components instead.




This bug report was last modified 8 years and 111 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.