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

via KDE Bugzilla bugzilla_noreply at kde.org
Sun Nov 29 13:05:47 GMT 2015


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

caulier.gilles at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|general                     |Metadata-Engine

--- Comment #2 from caulier.gilles at gmail.com ---
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

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



More information about the Digikam-devel mailing list