[xdg-email] Percent encoding problems
Rex Dieter
rdieter at math.unl.edu
Sat Aug 23 09:30:14 PDT 2014
Rex Dieter wrote:
> Michael Bäuerle wrote:
>
>> The problem is that the '-' character is used literally inside a regex
>> bracket expression (where it has the meaning of a range, like in "a-z"),
>> look at [3] (Paragraph 7) for the syntax definition.
>> The resulting range spans over the '?' character and prevents its
>> percent encoding.
>
> Testing myself, I cannot reproduce the problem you describe. Can you give
> a reproducible example?
>
> I tried:
>
> xdg-email rdieter-foo at bar.com
>
> and my email client opens correctly (with rdieter-foo at bar.com as expected,
> instead of something percent-encoded as you suggested would happen).
>
> Fwiw, it happens the same for me whether I include your suggested fix or
> not.
My mail client testing this (thunderbird) was handling the percent-encoded
input for me :-/
After adding some extra debugging I do see that unpatched code was passing
on:
mailto:rdieter%2Dfoo at bar.com
Which mail client(s) did you use that didnt handle this?
More information about the xdg
mailing list