--- Begin Message ---
Subject: |
26.1; Incorrect epg--decode-percent-escape |
Date: |
Wed, 5 Jun 2019 13:49:05 +0000 |
The code
(decode-coding-string
(epg--decode-percent-escape "D%C3%A9partement")
'utf-8)
should return "Département" but does not because the decoding of the percent
string is done with multibyte.
The attached patch fixes this.
Best,
C.
0001-epg-Use-unibyte-string-to-decode-percent-escape.patch
Description: 0001-epg-Use-unibyte-string-to-decode-percent-escape.patch
ATT00001.txt
Description: ATT00001.txt
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#36098: 26.1; Incorrect epg--decode-percent-escape |
Date: |
Sat, 22 Jun 2019 12:26:12 +0300 |
> From: Christophe TROESTLER <address@hidden>
> CC: "address@hidden" <address@hidden>
> Date: Wed, 5 Jun 2019 18:12:06 +0000
>
> On 5 June 2019 at 19:29 CEST, Eli Zaretskii <address@hidden> wrote:
> >
> >> From: Christophe TROESTLER <address@hidden>
> >> CC: "address@hidden" <address@hidden>
> >> Date: Wed, 5 Jun 2019 17:05:45 +0000
> >>
> >> > What I mean was only to let that function return a unibyte string, and
> >> > let the caller perform coding conversions.
> >>
> >> I can do that. To avoid repetitions, what about introducing
> >> epg--decode-percent-escape-as-utf-8?
> >
> > I think that would be fine, yes.
>
> Updated patch doing that.
Thanks, pushed.
--- End Message ---