From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.devel Subject: Re: possible bug in quoted-printable-decode region Date: Thu, 28 Jun 2018 14:33:56 +0200 Message-ID: <87a7rf9jkb.fsf@mat.ucm.es> References: <87bmbwlkfs.fsf@mat.ucm.es> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=sha256; protocol="application/pkcs7-signature" X-Trace: blaine.gmane.org 1530189191 32063 195.159.176.226 (28 Jun 2018 12:33:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 28 Jun 2018 12:33:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 28 14:33:07 2018 Return-path: Envelope-to: ged-emacs-devel@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 1fYW6k-0008Ep-V1 for ged-emacs-devel@m.gmane.org; Thu, 28 Jun 2018 14:33:07 +0200 Original-Received: from localhost ([::1]:36390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYW8s-0004LZ-BM for ged-emacs-devel@m.gmane.org; Thu, 28 Jun 2018 08:35:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYW7t-0004LS-Ce for emacs-devel@gnu.org; Thu, 28 Jun 2018 08:34:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYW7q-00041B-4Y for emacs-devel@gnu.org; Thu, 28 Jun 2018 08:34:17 -0400 Original-Received: from [195.159.176.226] (port=42335 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fYW7p-0003yZ-OD for emacs-devel@gnu.org; Thu, 28 Jun 2018 08:34:14 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fYW5f-0006uz-Ce for emacs-devel@gnu.org; Thu, 28 Jun 2018 14:31:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 152 Original-X-Complaints-To: usenet@blaine.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:c2a+NULUNlqZ0qHf/283I+fMhUI= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:226799 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable >>> "Yuri" =3D=3D Yuri Khan writes: > On Wed, Jun 27, 2018 at 3:10 PM Uwe Brauer wrote: >> Maybe I am missing something elementary here. I came across with a fi= le >> which still had quoted printable encoding like this >>=20 >> Buenas d=3DC3=3DADas: >>=20 >> So I used >> (quoted-printable-decode-region (region-beginning) (region-end) nil) >>=20 >> But I obtained the following >>=20 >> Buedas d\303\255as: > quoted-printable-decode-region gives you a byte string. You are then > supposed to decode that into text using whichever character encoding > you know is used. (Quoted-printable encoding, unlike URL > percent-encoding, does not mandate UTF-8. In RFC 2822 mail, the > character encoding will be given in the Content-Type header=E2=80=99s = charset=3D > parameter. =3DC3=3DAD looks like a quoted-printable encoding of UTF-8 > encoding of the character U+00ED LATIN SMALL LETTER I WITH ACUTE.) > As a shortcut, you could pass the character encoding as the last > argument to q-p-d-r, but that is described as deprecated in the > docstring. Thanks, but now I am confused. I have that file, with=20 Buenas d=3DC3=3DADas: How can I translate/decode that to latin1 or utf8? Or are you saying that this is not possible.=20 Hm, The file indeed is a complete email, which was never sent. Ah: I found a way to display that text. In gnus I use=20 gnus-group-make-doc-group=20 give the name of that file and then visit that group with gnus. Indeed the= chars are displayed correctly. Problem solved.=20 Still don't know what to do if the file had no mail header. Thanks for clarifying the issue a bit to me. --=-=-= Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=smime.p7s MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCCEPEw ggXYMIIDwKADAgECAhBMqvnK22Nv4B/3TthbA4adMA0GCSqGSIb3DQEBDAUAMIGFMQswCQYDVQQG EwJHQjEbMBkGA1UECBMSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHEwdTYWxmb3JkMRowGAYD VQQKExFDT01PRE8gQ0EgTGltaXRlZDErMCkGA1UEAxMiQ09NT0RPIFJTQSBDZXJ0aWZpY2F0aW9u IEF1dGhvcml0eTAeFw0xMDAxMTkwMDAwMDBaFw0zODAxMTgyMzU5NTlaMIGFMQswCQYDVQQGEwJH QjEbMBkGA1UECBMSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHEwdTYWxmb3JkMRowGAYDVQQK ExFDT01PRE8gQ0EgTGltaXRlZDErMCkGA1UEAxMiQ09NT0RPIFJTQSBDZXJ0aWZpY2F0aW9uIEF1 dGhvcml0eTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAJHoVJLSClaxrA0k3cXPRGd0 mSs3o30jcABxvFPfxPoqEo9LfxBWvZ9wcrdhf8lLDxenPeOwBGHu/xGXx/SGPgr6Plz5k+Y0etkU a+ecs4Wggnp2r3GQ1+z9DfqcbPrfsIL0FH75vsSmL09/mX+1/GdDcr0MAN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