all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Roland Winkler <winkler@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Pascal Quesseveur <pquessev@gmail.com>, 56513@debbugs.gnu.org
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	[thread overview]
Message-ID: <874jzm6tga.fsf@gnu.org> (raw)
In-Reply-To: <87y1wyv3ck.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 12 Jul 2022 15:59:39 +0200")

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





  parent reply	other threads:[~2022-07-12 19:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-12  6:33 bug#56513: 28.1; Vcard in a mime part with a utf-8 charset is displayed incorrectly Pascal Quesseveur
2022-07-12 13:02 ` Lars Ingebrigtsen
     [not found]   ` <827d4ia12v.fsf@gmail.com>
2022-07-12 13:59     ` Lars Ingebrigtsen
2022-07-12 16:17       ` Pascal Quesseveur
2022-07-12 19:07       ` Roland Winkler [this message]
2022-07-12 22:32         ` 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

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

  git send-email \
    --in-reply-to=874jzm6tga.fsf@gnu.org \
    --to=winkler@gnu.org \
    --cc=56513@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=pquessev@gmail.com \
    /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 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.