[Bug 973173] Re: /etc/mailcap syntax problem
Daniel Hahler
launchpad at thequod.de
Fri Oct 26 20:26:49 UTC 2012
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
Foundations Bugs, which is subscribed to imagemagick in Ubuntu.
https://bugs.launchpad.net/bugs/973173
Title:
/etc/mailcap syntax problem
Status in ImageMagick - Convert, Edit and Compose Images:
Invalid
Status in “imagemagick” package in Ubuntu:
Fix Released
Status in “mime-support” package in Ubuntu:
Won't Fix
Bug description:
After installing imagemagic is there tid problem:
in /usr/lib/mime/packages/imagemagic are such lines:
image/png; display png:'%s'; test=test -n "$DISPLAY"; priority=2
after update-mime it results in lines in /etc/mailcap:
image/png; display 'png:'%s''; test=test -n "$DISPLAY"
You can see - the problem is in nesting of ---- ' ----
$ see --debug 1.png
- parsing parameter "1.png"
- Reading mime.types file "/etc/mime.types"...
- extension "png" maps to mime-type "image/png"
- Reading mailcap file "/etc/mailcap"...
Processing file "1.png" of type "image/png" (encoding=none)...
- checking mailcap entry "image/png; display 'png:'%s''; test=test -n "$DISPLAY""
- program to execute: display 'png:'%s''
- running test: test -n "$DISPLAY" (result=0=true)
- executing: display 'png:'1.png'
sh: 1: Syntax error: Unterminated quoted string
Warning: program returned non-zero exit code #2
$
and maybe also last --- ' --- is missing (?).
I had try to modify /usr/lib/mime/packages/imagemagic to image/png; display png:"%s"; test=test -n "$DISPLAY"; priority=2
but I just get another error:
$ see --debug 1.png
- parsing parameter "1.png"
- Reading mime.types file "/etc/mime.types"...
- extension "png" maps to mime-type "image/png"
- Reading mailcap file "/etc/mailcap"...
Processing file "1.png" of type "image/png" (encoding=none)...
- checking mailcap entry "image/png; display 'png:"%s"'; test=test -n "$DISPLAY""
- program to execute: display 'png:"%s"'
- running test: test -n "$DISPLAY" (result=0=true)
- executing: display 'png:"1.png"'
display: unable to open image `"1.png"': @ error/blob.c/OpenBlob/2587.
display: unable to open file `"1.png"' @ error/png.c/ReadPNGImage/3234.
$
--kapetr
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: mime-support 3.51-1ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-21.34-generic 3.2.13
Uname: Linux 3.2.0-21-generic x86_64
ApportVersion: 2.0-0ubuntu3
Architecture: amd64
Date: Wed Apr 4 10:11:18 2012
Dependencies:
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120401)
PackageArchitecture: all
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=cs_CZ.UTF-8
SHELL=/bin/bash
SourcePackage: mime-support
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/imagemagick/+bug/973173/+subscriptions
More information about the foundations-bugs
mailing list