[Bug 973173] Re: /etc/mailcap syntax problem

2012-10-26 Thread Daniel Hahler
This also affects midnight commander, which uses /usr/bin/see (from
mime-support) to open images.

** Changed in: mime-support (Ubuntu)
   Importance: Undecided = Medium

** Changed in: mime-support (Ubuntu)
   Status: Confirmed = Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/973173

Title:
  /etc/mailcap syntax problem

To manage notifications about this bug go to:
https://bugs.launchpad.net/imagemagick/+bug/973173/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 973173] Re: /etc/mailcap syntax problem

2012-10-26 Thread Daniel Hahler
** Also affects: imagemagick (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/973173

Title:
  /etc/mailcap syntax problem

To manage notifications about this bug go to:
https://bugs.launchpad.net/imagemagick/+bug/973173/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 973173] Re: /etc/mailcap syntax problem

2012-10-26 Thread Daniel Hahler
The problem is caused by the following substitution in update-mime:

s/([^\s;]\s+)(?![\'\])([^\s;]*)%s([^\s;]*)/$1'$2%s$3'/g;

This is probably meant to escape/protect any %s instances which are
not surrounded by quotes yet, using single quotes.

This is fixed in Debian unstable, where imagemagick properly escapes the
argument to display and update-mime does not add extra quotes around
%s (it is: display.im6 'jpeg:%s').

Debian has imagemagick 8:6.7.7.10-4.

Looking at imagemagick in Ubuntu Quantal (8:6.7.7.10-2ubuntu4), this
appears to be addressed there already, too.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/973173

Title:
  /etc/mailcap syntax problem

To manage notifications about this bug go to:
https://bugs.launchpad.net/imagemagick/+bug/973173/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 973173] Re: /etc/mailcap syntax problem

2012-10-26 Thread Daniel Hahler
This is not a bug with ImageMagick itself - the debian/imagemagick.mime
file is being added by Debian/Ubuntu.

** Changed in: imagemagick
   Status: New = Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/973173

Title:
  /etc/mailcap syntax problem

To manage notifications about this bug go to:
https://bugs.launchpad.net/imagemagick/+bug/973173/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 973173] Re: /etc/mailcap syntax problem

2012-10-26 Thread Daniel Hahler
Fixed via imagemagick in Ubuntu Quantal, therefore closing this bug
task.

** Changed in: imagemagick (Ubuntu)
   Status: New = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/973173

Title:
  /etc/mailcap syntax problem

To manage notifications about this bug go to:
https://bugs.launchpad.net/imagemagick/+bug/973173/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 973173] Re: /etc/mailcap syntax problem

2012-10-26 Thread Daniel Hahler
I am closing the mime-support task as Won't fix.

While the update-mime might fail here, it is probably a better idea to
be more restrictive than permissive when trying to handle unescaped %s
instances.

** Changed in: mime-support (Ubuntu)
   Status: Triaged = Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/973173

Title:
  /etc/mailcap syntax problem

To manage notifications about this bug go to:
https://bugs.launchpad.net/imagemagick/+bug/973173/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 973173] Re: /etc/mailcap syntax problem

2012-04-23 Thread kapetr
As I have understand later, the /etc/mailcap is obsolete. Imagemagic should not 
use it and mc too.
see https://bugs.launchpad.net/ubuntu/+source/eog/+bug/973176

But - the reason why I have thing the problem is rather in MIME then in
Imagemagic (about the syntax problem) is, that the ' are added by
generating the /etc/mailcap (by MIME).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/973173

Title:
  /etc/mailcap syntax problem

To manage notifications about this bug go to:
https://bugs.launchpad.net/imagemagick/+bug/973173/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 973173] Re: /etc/mailcap syntax problem

2012-04-22 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: mime-support (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/973173

Title:
  /etc/mailcap syntax problem

To manage notifications about this bug go to:
https://bugs.launchpad.net/imagemagick/+bug/973173/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 973173] Re: /etc/mailcap syntax problem

2012-04-22 Thread Jim Cheetham
The edit you should have made to /etc/mailcap was to remove the single
quotes around the %s part of the display command ...

broken mailcap line :-
image/png; display 'png:'%s''; test=test -n $DISPLAY

fixed mailcap line :-
image/png; display 'png:%s'; test=test -n $DISPLAY

I suspect that this bug should attack to imagemagick, rather than to
mime-support. The capabilities for image/png are not present in a
minimal install, and there are terefore no lines in /etc/mailcap. It's
only when you introduce the imagemagick package (and its dependencies)
that any capability for image/png appears, and it is broken, as
described.


** Also affects: imagemagick
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/973173

Title:
  /etc/mailcap syntax problem

To manage notifications about this bug go to:
https://bugs.launchpad.net/imagemagick/+bug/973173/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs