all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#26315: 24.4; mail-header-parse-addres/ietf-drums-parse-address fails on UTF-8 string
@ 2017-03-30 19:17 Łukasz Stelmach
  2017-03-30 20:32 ` Eli Zaretskii
  2017-03-31  8:29 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 9+ messages in thread
From: Łukasz Stelmach @ 2017-03-30 19:17 UTC (permalink / raw)
  To: 26315

[-- Attachment #1: Type: text/plain, Size: 509 bytes --]

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.

-- 
Było mi bardzo miło.                                  --- Rurku. --- ...
>Łukasz<                                --- To dobrze, że mnie słuchasz.

[-- Attachment #2: Type: application/pgp-signature, Size: 602 bytes --]

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

* bug#26315: 24.4; mail-header-parse-addres/ietf-drums-parse-address fails on UTF-8 string
  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
  2017-03-31  8:29 ` Lars Ingebrigtsen
  1 sibling, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2017-03-30 20:32 UTC (permalink / raw)
  To: Łukasz Stelmach; +Cc: 26315

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





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

* bug#26315: 24.4; mail-header-parse-addres/ietf-drums-parse-address fails on UTF-8 string
  2017-03-30 20:32 ` Eli Zaretskii
@ 2017-03-31  6:55   ` Łukasz Stelmach
  2017-03-31  8:00     ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Łukasz Stelmach @ 2017-03-31  6:55 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 26315

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





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

* bug#26315: 24.4; mail-header-parse-addres/ietf-drums-parse-address fails on UTF-8 string
  2017-03-31  6:55   ` Łukasz Stelmach
@ 2017-03-31  8:00     ` Eli Zaretskii
  2017-03-31  8:25       ` Łukasz Stelmach
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2017-03-31  8:00 UTC (permalink / raw)
  To: Łukasz Stelmach; +Cc: 26315

> Date: Fri, 31 Mar 2017 08:55:47 +0200 (CEST)
> From: Łukasz Stelmach <steelman@post.pl>
> Cc: 26315@debbugs.gnu.org
> 
> > 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.

Then please show a recipe using Gnus to read or send messages that
fails due to this, then the Gnus maintainers will be able to look into
that.  Please don't assume the problem is with this particular
function, the actual problem might be elsewhere.

Thanks.





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

* bug#26315: 24.4; mail-header-parse-addres/ietf-drums-parse-address fails on UTF-8 string
  2017-03-31  8:00     ` Eli Zaretskii
@ 2017-03-31  8:25       ` Łukasz Stelmach
  2017-03-31  8:59         ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Łukasz Stelmach @ 2017-03-31  8:25 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 26315

Dnia 31 marca 2017 o 10:00 Eli Zaretskii <eliz@gnu.org> napisał(a):

> > Date: Fri, 31 Mar 2017 08:55:47 +0200 (CEST)
> > From: Łukasz Stelmach <steelman@post.pl>
> > Cc: 26315@debbugs.gnu.org
> > 
> > > 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.
> 
> Then please show a recipe using Gnus to read or send messages that
> fails due to this, then the Gnus maintainers will be able to look into
> that.  Please don't assume the problem is with this particular
> function, the actual problem might be elsewhere.

OK. Should I file another bug or "rename" this one?





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

* bug#26315: 24.4; mail-header-parse-addres/ietf-drums-parse-address fails on UTF-8 string
  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  8:29 ` Lars Ingebrigtsen
  2017-03-31  8:56   ` Stephen Berman
  1 sibling, 1 reply; 9+ messages in thread
From: Lars Ingebrigtsen @ 2017-03-31  8:29 UTC (permalink / raw)
  To: Łukasz Stelmach; +Cc: 26315-done

Łukasz Stelmach <steelman@post.pl> writes:

> Running the following lisp code:
>
>     (mail-header-parse-address "Łukasz Stelmach <steelman@post.pl>")
>
> yields the error message:
>
>     Unknown symbol: Ł

This has been fixed in later versions of Emacs.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#26315: 24.4; mail-header-parse-addres/ietf-drums-parse-address fails on UTF-8 string
  2017-03-31  8:29 ` Lars Ingebrigtsen
@ 2017-03-31  8:56   ` Stephen Berman
  2017-03-31  9:33     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 9+ messages in thread
From: Stephen Berman @ 2017-03-31  8:56 UTC (permalink / raw)
  To: 26315; +Cc: larsi, steelman

On Fri, 31 Mar 2017 10:29:27 +0200 Lars Ingebrigtsen <larsi@gnus.org> wrote:

> Łukasz Stelmach <steelman@post.pl> writes:
>
>> Running the following lisp code:
>>
>>     (mail-header-parse-address "Łukasz Stelmach <steelman@post.pl>")
>>
>> yields the error message:
>>
>>     Unknown symbol: Ł
>
> This has been fixed in later versions of Emacs.

On (nearly) current master I don't get an error but this:

("steelman@post.pl" . "ukasz Stelmach")

Is that correct?

Steve Berman





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

* bug#26315: 24.4; mail-header-parse-addres/ietf-drums-parse-address fails on UTF-8 string
  2017-03-31  8:25       ` Łukasz Stelmach
@ 2017-03-31  8:59         ` Eli Zaretskii
  0 siblings, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2017-03-31  8:59 UTC (permalink / raw)
  To: Łukasz Stelmach; +Cc: 26315

> Date: Fri, 31 Mar 2017 10:25:33 +0200 (CEST)
> From: Łukasz Stelmach <steelman@post.pl>
> Cc: 26315@debbugs.gnu.org
> 
> > > 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.
> > 
> > Then please show a recipe using Gnus to read or send messages that
> > fails due to this, then the Gnus maintainers will be able to look into
> > that.  Please don't assume the problem is with this particular
> > function, the actual problem might be elsewhere.
> 
> OK. Should I file another bug or "rename" this one?

No need to file a new bug, you can use this one.  Bonus points for
using "retitle" to make the title more accurate and mentioning Gnus.
See admin/note/bugtracker for how to use "retitle".

Thanks.





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

* bug#26315: 24.4; mail-header-parse-addres/ietf-drums-parse-address fails on UTF-8 string
  2017-03-31  8:56   ` Stephen Berman
@ 2017-03-31  9:33     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 9+ messages in thread
From: Lars Ingebrigtsen @ 2017-03-31  9:33 UTC (permalink / raw)
  To: Stephen Berman; +Cc: 26315, steelman

Stephen Berman <stephen.berman@gmx.net> writes:

> On (nearly) current master I don't get an error but this:
>
> ("steelman@post.pl" . "ukasz Stelmach")
>
> Is that correct?

Yes.  It's a function meant to be used to parse RFC2822 addresses, and
that's not a valid input.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2017-03-31  9:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.