From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Roland Winkler Newsgroups: gmane.emacs.bugs Subject: bug#56513: 28.1; Vcard in a mime part with a utf-8 charset is displayed incorrectly Date: Tue, 12 Jul 2022 14:07:17 -0500 Message-ID: <874jzm6tga.fsf@gnu.org> References: <82o7xudelx.fsf@abaksystemes.fr> <874jzmzdpz.fsf@gnus.org> <827d4ia12v.fsf@gmail.com> <87y1wyv3ck.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27637"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Pascal Quesseveur , 56513@debbugs.gnu.org To: Lars Ingebrigtsen Cancel-Lock: sha1:+OX53l7kXYhaLTjEuYoW+8u7jlg= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 12 21:08:26 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oBLFA-0006yA-Ut for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Jul 2022 21:08:25 +0200 Original-Received: from localhost ([::1]:57022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBLF8-0007FK-Iz for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Jul 2022 15:08:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBLEo-0007Ez-1C for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2022 15:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49764) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBLEn-0007mJ-Os for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2022 15:08:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oBLEn-0003p3-IF for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2022 15:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Roland Winkler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jul 2022 19:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56513 X-GNU-PR-Package: emacs Original-Received: via spool by 56513-submit@debbugs.gnu.org id=B56513.165765284714640 (code B ref 56513); Tue, 12 Jul 2022 19:08:01 +0000 Original-Received: (at 56513) by debbugs.gnu.org; 12 Jul 2022 19:07:27 +0000 Original-Received: from localhost ([127.0.0.1]:43661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBLEF-0003o4-3T for submit@debbugs.gnu.org; Tue, 12 Jul 2022 15:07:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBLED-0003nr-PI for 56513@debbugs.gnu.org; Tue, 12 Jul 2022 15:07:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39476) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBLE8-0007j8-7e; Tue, 12 Jul 2022 15:07:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=mF7lmQwbRY9ApyKAvj5ZtqFs2HhiJIBN7wEA61m87Pw=; b=ailaT5PlRibtGfQ3Pq8j cOx1nIhEWL5sXlwRRwTDa36ides9m8ko2P0HFARqPecFSkhskwQcGSuW12j4R0F325HbGvmlfPXdM 38d9kSBe2gbDG7zcj0DpOzNvxzkTEPeIF6Ae5Vhcoyhk5Yxfhyg8/IGSGJnHV+9eyLdjS3la49DHy ctgmKmH8oZrAckdA4q9V0BMEkBz4cjXqKOrqS9nnjE030vTCPE0TvzXGK0Anm401B1bjcWWFI0IJa rkukm8nUBkxTNOZh8iAzqmYZApIl7wji2l43US6YLycsKH7su2/gMF5QO5EIaVMAW5WUYl7rcInGE Mws23uLa3/dmJw==; Original-Received: from [2600:1700:5650:f790::42] (port=47440 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBLE6-0000oI-Ac; Tue, 12 Jul 2022 15:07:20 -0400 In-Reply-To: <87y1wyv3ck.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 12 Jul 2022 15:59:39 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:236828 Archived-At: On Tue, Jul 12 2022, Lars Ingebrigtsen wrote: >> FWIW buffer-file-coding-system in article buffer is iso-latin-1-dos. > > That's odd -- is vcard-pretty-print doing charset encoding? What we're > passing in should already be decoded (with that patch): > > + (data (mm-decode-string (mm-get-part handle) charset)) Below I am re-posting an example of a vcard MIME attachment that Pascal had originally posted on the BBDB mailing list. The odd thing about these MIME attachments is that vcard properties such as "org" and "adr" in the example below may include "quoted-printable" paramaters as part of the vcard itself. So my understanding is that the decoding of the quoted-printable encoded strings and any subsequent coding-system decoding should be done by a vcard parser and not by a MUA when processing MIME attachments. The vCard format 4.0 (rfc6350) requires that vCards use utf-8, it does not permit other coding-systems. I do not know about earlier versions of the vCard format. ,---- | Content-Type: text/x-vcard; charset=utf-8; | name="dupont.vcf" | Content-Transfer-Encoding: 7bit | Content-Disposition: attachment; | filename="dupont.vcf" | | begin:vcard | fn:Jean | n:Dupont;Jean | org;quoted-printable:Syst=C3=A8mes DUPONT | adr;quoted-printable:BP X;;La Cit=C3=A9;Province;00000;France | email;internet:dupont@systemes.fr | title:Directeur | tel;work:+33 (0)000000000 | tel;fax:+33 (0)111111111 | tel;cell:+33 (0)222222222 | url:http://www.dupont.fr | version:2.1 | end:vcard `----