[Digikam-devel] [Bug 152877] thumbnails: URI does not follow Thumbnail Managing Standard

Heiko Schröder heiko.schroeder at t-online.de
Mon Nov 26 09:13:49 GMT 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=152877         




------- Additional Comments From heiko.schroeder t-online de  2007-11-26 10:13 -------
Hi,

I must admit, I didn't even look at the code...

I wrote a perl script to cleanup my .thumbnails directory and noticed that some URIs contained Latin-1 characters while my filesystems are in UTF-8. For the same file there ususally was another entry using the hex-encoded URI. Checking the Software tag revealed the producers (digikam vs. konqueror).

For the encoding:
I'm afraid I can't help you much with the real code (I am not familiar with Qt), but generally: You have to replace all characters outside the US-ASCII range with the hex code (using capital letters) prefixed by "%". So your format string looks right, but of course it has to be applied only to those characters that are outside US-ASCII set (and before converting the path to Latin-1).

And it's not just MD5 code for the thumbnail that is affected. The Thumb::URI tag written to the thumbnail file has to be encoded correctly, too.



More information about the Digikam-devel mailing list