[Digikam-devel] [Bug 148182] Iptc.Application2.Keywords appends always the 0-byte

oongi at web.de oongi at web.de
Sun Sep 2 13:14:54 BST 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=148182         




------- Additional Comments From oongi web de  2007-09-02 14:14 -------
I don't know how to patch the code witch patch, instead I changed in the lines 2022, 2105 and 2189 of kexiv2.cpp (version 0.1.5 of libkexiv2) "Exiv2::asciiString" in "Exiv2::string" and now there isn't the NULL-Byte at the end of the tags:

name linux:~$ exiv2 -pi  testimg.jpg | hexdump -C
00000000  49 70 74 63 2e 41 70 70  6c 69 63 61 74 69 6f 6e  |Iptc.Application|
00000010  32 2e 4b 65 79 77 6f 72  64 73 20 20 20 20 20 20  |2.Keywords      |
00000020  20 20 20 20 20 20 20 20  20 20 20 20 20 53 74 72  |             Str|
00000030  69 6e 67 20 20 20 20 20  20 34 20 20 74 65 73 74  |ing      4  test|
00000040  0a 49 70 74 63 2e 41 70  70 6c 69 63 61 74 69 6f  |.Iptc.Applicatio|
00000050  6e 32 2e 50 72 6f 67 72  61 6d 20 20 20 20 20 20  |n2.Program      |
00000060  20 20 20 20 20 20 20 20  20 20 20 20 20 20 53 74  |              St|
00000070  72 69 6e 67 20 20 20 20  20 34 36 20 20 64 69 67  |ring     46  dig|
00000080  69 6b 61 6d 20 28 55 73  69 6e 67 20 4b 69 70 69  |ikam (Using Kipi|
00000090  20 4d 65 74 61 64 61 74  61 45 64 69 74 20 70 6c  | MetadataEdit pl|
000000a0  75 67 69 6e 20 30 2e 31  2e 34 29 0a 49 70 74 63  |ugin 0.1.4).Iptc|
000000b0  2e 41 70 70 6c 69 63 61  74 69 6f 6e 32 2e 50 72  |.Application2.Pr|
000000c0  6f 67 72 61 6d 56 65 72  73 69 6f 6e 20 20 20 20  |ogramVersion    |
000000d0  20 20 20 20 20 20 20 20  20 53 74 72 69 6e 67 20  |         String |
000000e0  20 20 20 20 31 31 20 20  30 2e 39 2e 32 2d 66 69  |    11  0.9.2-fi|
000000f0  6e 61 6c 0a                                       |nal.|

Thanks a lot!

oongi

P.S. and now move on to the next one: https://bugs.kde.org/show_bug.cgi?id=149475 ;-)



More information about the Digikam-devel mailing list