Bug 486132 - XMP file is not created if directory contains non-ascii UTF-8 chars
Summary: XMP file is not created if directory contains non-ascii UTF-8 chars
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Sidecar (show other bugs)
Version: 8.3.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-25 21:27 UTC by martin
Modified: 2024-04-26 18:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 8.4.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description martin 2024-04-25 21:27:36 UTC
If I place JPG files into subdirectory "ř", XMP files are never created.
If I place the same JPG files into subdirectory "r", XMP files are created correctly.
I can even copy XMP files from directory "r" to "ř" and they are read/interpreted correctly (for JPG files inside "ř"), but never updated.

Same result with HEIC files.

Writing metadata into JPG files works just fine.

My Settings -> Metadata: 

Write this Information to the Metadata: Image tags + Rating
Delegate to ExifTool backend all operations to write metadata to files: (can be true or false, doesn't change anything)
Sidecars/Write to sidecar files: Write to XMP sidecar only

If I set it to "Write to item and XMP Sidecar", then the JPG files are modified correctly (event inside "ř" directory), but XMP files are still never created.
Comment 1 martin 2024-04-25 21:36:14 UTC
I am actually not sure about reading/interpreting XMP files inside "ř" directory.
It seems that rating is somehow loaded from database. If I copy XMP file into "ř" directory, it doesn't change rating of the JPG file there.
Comment 2 Maik Qualmann 2024-04-26 05:48:50 UTC
Creating sidecars in file paths with non ASCII characters is fixed in digikam-8.4.0. See also Bug 483743. A digiKam-8.4.0 test version can be downloaded here:

https://files.kde.org/digikam/

Maik
Comment 3 Maik Qualmann 2024-04-26 18:21:09 UTC
Git commit 09464b03dbfaa2cd29ac2a34ea2d2b04e354866a by Maik Qualmann.
Committed on 26/04/2024 at 18:20.
Pushed by mqualmann into branch 'master'.

support UTF8 for xmp sidecar in the MSVC build was still forgotten
FIXED-IN: 8.4.0

M  +1    -1    core/libs/metadataengine/engine/metaengine_p.cpp

https://invent.kde.org/graphics/digikam/-/commit/09464b03dbfaa2cd29ac2a34ea2d2b04e354866a