Bug #485

Weird behaviour when Exif comments contain quotes

Added by Andreas Huggel almost 11 years ago. Updated over 8 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Andreas Huggel% Done:

0%

Category:tools
Target version:0.11

Description

I'm trying to add exif comments to a bunch of files and I found some
weird behavior.

Works fine!
exiv2 -M "set Exif.Photo.UserComment This is my comment" file.jpg

Works fine! (quoted my)
exiv2 -M "set Exif.Photo.UserComment This is \"my\" comment" file.jpg

Broken (quoted comment)
exiv2 -M "set Exif.Photo.UserComment This is my \"comment\"" file.jpg

It seems if the FINAL character of the comment is a " character the
parser gets confused. I can "work around" the bug by doing:

Work Around (last char not ")
exiv2 -M "set Exif.Photo.UserComment This is my \"comment\"." file.jpg

Is this normal?

Scott

History

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux