unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Łukasz Stelmach" <steelman@post.pl>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 26315@debbugs.gnu.org
Subject: bug#26315: 24.4; mail-header-parse-addres/ietf-drums-parse-address fails on UTF-8 string
Date: Fri, 31 Mar 2017 08:55:47 +0200 (CEST)	[thread overview]
Message-ID: <1795647025.1780386.465700f0-8c7b-4d29-8c1b-97265063956b.open-xchange@poczta.home.pl> (raw)
In-Reply-To: <83mvc25wva.fsf@gnu.org>

Dnia 30 marca 2017 o 22:32 Eli Zaretskii <eliz@gnu.org> napisał(a):
> > From: Łukasz Stelmach <steelman@post.pl>
> > Date: Thu, 30 Mar 2017 21:17:00 +0200
> > 
> > Running the following lisp code:
> > 
> >     (mail-header-parse-address "Łukasz Stelmach <steelman@post.pl>")
> > 
> > yields the error message:
> > 
> >     Unknown symbol: Ł
> > 
> > and the invalid result:
> > 
> >     ("steelman@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.

It's not me using it but Gnus in gnus-summary-limit-to-author and a few
other places. I receive the "Unknown symbol" when signing with gnupg,
too.

-- 
Miłego dnia,
Łukasz Stelmach





  reply	other threads:[~2017-03-31  6:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-30 19:17 bug#26315: 24.4; mail-header-parse-addres/ietf-drums-parse-address fails on UTF-8 string Łukasz Stelmach
2017-03-30 20:32 ` Eli Zaretskii
2017-03-31  6:55   ` Łukasz Stelmach [this message]
2017-03-31  8:00     ` Eli Zaretskii
2017-03-31  8:25       ` Łukasz Stelmach
2017-03-31  8:59         ` Eli Zaretskii
2017-03-31  8:29 ` Lars Ingebrigtsen
2017-03-31  8:56   ` Stephen Berman
2017-03-31  9:33     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1795647025.1780386.465700f0-8c7b-4d29-8c1b-97265063956b.open-xchange@poczta.home.pl \
    --to=steelman@post.pl \
    --cc=26315@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).