[Digikam-devel] [digikam] [Bug 355256] Failed to load image if file path contains non-ascii characters

Eduard Sukharev via KDE Bugzilla bugzilla_noreply at kde.org
Tue Dec 1 09:18:54 GMT 2015


https://bugs.kde.org/show_bug.cgi?id=355256

--- Comment #3 from Eduard Sukharev <kraplax at mail.ru> ---
(In reply to caulier.gilles from comment #2)
> The error reported under windows come from the libexiv2 interface used by
> digiKam. Code relevant is given below :
> 
> bool MetaEngine::load(const QString& filePath) const
> {
> ...
>         Exiv2::Image::AutoPtr image;
> 
>         image        = Exiv2::ImageFactory::open((const
> char*)(QFile::encodeName(filePath)).constData());
> 
>         image->readMetadata();
> ...
> }
> 
> We pass file path to Exiv2 using QString (UTF8). Exiv2 use char* data which
> is converted by QFile::encodeName() function.
> 
> Following this thread :
> 
> http://subsurface.hohndel.narkive.com/sM5jj4ot/file-encodename-and-utf8-as-
> the-default-encoding-under-qt5
> 
> With Qt5 the encoding problem must be fixed under Windows
> 
> Gilles Caulier

Good to know it should be fixed in Qt5 release. Should we close this report as
won't fix or resolved? Or should this rather be fixed even in Qt4 release
series?

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Digikam-devel mailing list