From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?=C5=81ukasz?= Stelmach Newsgroups: gmane.emacs.bugs 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) Message-ID: <1795647025.1780386.465700f0-8c7b-4d29-8c1b-97265063956b.open-xchange@poczta.home.pl> References: <8737duy3pv.fsf%steelman@post.pl> <83mvc25wva.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1490943438 26401 195.159.176.226 (31 Mar 2017 06:57:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 31 Mar 2017 06:57:18 +0000 (UTC) Cc: 26315@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 31 08:57:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctqUU-0004qc-Gu for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Mar 2017 08:56:58 +0200 Original-Received: from localhost ([::1]:39148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ctqUa-0002iJ-AI for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Mar 2017 02:57:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ctqTd-0002Dh-Fs for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2017 02:56:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ctqTa-0005q2-F9 for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2017 02:56:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55311) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ctqTa-0005py-BQ for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2017 02:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ctqTa-0001nu-1e for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2017 02:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C5=81ukasz?= Stelmach Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 Mar 2017 06:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26315 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26315-submit@debbugs.gnu.org id=B26315.14909433516916 (code B ref 26315); Fri, 31 Mar 2017 06:56:01 +0000 Original-Received: (at 26315) by debbugs.gnu.org; 31 Mar 2017 06:55:51 +0000 Original-Received: from localhost ([127.0.0.1]:53510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctqTP-0001nU-35 for submit@debbugs.gnu.org; Fri, 31 Mar 2017 02:55:51 -0400 Original-Received: from cloudserver2082659.home.net.pl ([89.161.255.113]:53138 helo=cloudserver000051.home.net.pl) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctqTN-0001nE-KF for 26315@debbugs.gnu.org; Fri, 31 Mar 2017 02:55:50 -0400 Original-Received: from ox2-ap26.home.net.pl (79.96.240.176) (HELO ox2-ap26) by post.home.pl (212.85.96.51) with SMTP (IdeaSmtpServer 0.82) id dec16fcceb061a37; Fri, 31 Mar 2017 08:55:47 +0200 In-Reply-To: <83mvc25wva.fsf@gnu.org> X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.0-Rev36 X-Originating-Client: open-xchange-appsuite X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:131121 Archived-At: Dnia 30 marca 2017 o 22:32 Eli Zaretskii napisa=C5=82(a): > > From: =C5=81ukasz Stelmach > > Date: Thu, 30 Mar 2017 21:17:00 +0200 > >=20 > > Running the following lisp code: > >=20 > > (mail-header-parse-address "=C5=81ukasz Stelmach = ") > >=20 > > yields the error message: > >=20 > > Unknown symbol: =C5=81 > >=20 > > and the invalid result: > >=20 > > ("steelman@post.pl" . "ukasz Stelmach") > >=20 > > As far as I can tell this happens if the first character of the > > address > > string is an UTF-8 (non-ascii?) one. >=20 > Why are you using that function? It assumes the non-ASCII characters > were rfc2047-encoded. >=20 > 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. --=20 Mi=C5=82ego dnia, =C5=81ukasz Stelmach