Package: libfile-mimeinfo-perl
Version: 0.16-1
Severity: important

Dear Maintainer,
Trying mimeopen somefile.svg (associated to the mimetype image/svg+xml), I did 
not succeed in having the association to my default svg editor done.
My XDG_DATA_DIRS points to a directory with a applications/mimeinfo.cache file 
in with the following content:

[MIME Cache]
image/svg+xml=mirage.desktop;

Debugging the mimeinfo call with perl -d, I found out that when parsing the 
mimeinfo lines to get the association mime -> desktop file, it uses the
following regexp /^$mimetype=(.*)$/ with mimetype=image/svg+xml.
This does not match the line image/svg+xml=mirage.desktop;, I guess because the 
+ is interpreted like the regexp special character.

The expecation with such use case would be to find the match and return the 
associated mirage.desktop entry.

The problematic line is at line 123 of the 
/usr/share/perl5/File/MimeInfo/Applications.pm file (line 5 of the _read_list 
subroutine).

-- System Information:
Debian Release: wheezy/sid
  APT prefers stable
  APT policy: (650, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to fr_FR.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libfile-mimeinfo-perl depends on:
ii  libfile-basedir-perl          0.03-1     Perl module to use the freedesktop
ii  libfile-desktopentry-perl     0.04-3     Perl module to handle freedesktop 
ii  perl                          5.14.2-13  Larry Wall's Practical Extraction 
ii  shared-mime-info              1.0-1+b1   FreeDesktop.org shared MIME databa

libfile-mimeinfo-perl recommends no packages.

libfile-mimeinfo-perl suggests no packages.

-- no debconf information

Attachment: pgpKFYqlTEHiR.pgp
Description: PGP signature

Reply via email to