run-mailcap script contains deprecated unsescaped left brace

Asked by Kat Cannon-MacMartin

I am using 16.04 xenial, which the mime-support package 3.59.

The run-mailcap script in the mime-support package contains an unescaped left brace in the regex statement on line 528.

To be exact, the line that currently reads:

$comm =~ s!%{(.*?)}!$_="'$ENV{$1}'";s/\`//g;s/\'\'//g;$_!ge;

should instead read:

$comm =~ s!%\{(.*?)}!$_="'$ENV{$1}'";s/\`//g;s/\'\'//g;$_!ge;

Because of this issue, run-mailcap displays a warning each time it runs (although actual functionality is not inhibited)

I took a look at the latest edition of the package, 3.60, and this issue is fixed in that version. Xenial, however, still uses 3.59. Is this fix coming to Xenial any time soon?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu mime-support Edit question
Assignee:
No assignee Edit question
Solved by:
Kat Cannon-MacMartin
Solved:
Last query:
Last reply:
Revision history for this message
Kat Cannon-MacMartin (trenzafeeds) said :
#1

I realized immediately after submission that this should instead be a question, before being escalated to the status of "bug". Just curious why 16.04 doesn't have this fix yet.

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

Manfred Hampl suggests this article as an answer to your question:
FAQ #3037: “no rolling release”.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

I see three possibilities:

1. you make the edit of that file yourself
2. you try installing the version of the package for a newer Ubuntu release on your system (there are no complicated dependencies, so the chances are good that this works)
3. you create a bug report to request that this weakness is repaired

Revision history for this message
Kat Cannon-MacMartin (trenzafeeds) said :
#4

Thank you, seems obvious in retrospect.