Skip to content

Fix AI model extraction on Windows profiles with non-ASCII paths - #21654

Merged
TurboGit merged 1 commit into
darktable-org:masterfrom
andriiryzhkov:fix_21640
Jul 28, 2026
Merged

Fix AI model extraction on Windows profiles with non-ASCII paths#21654
TurboGit merged 1 commit into
darktable-org:masterfrom
andriiryzhkov:fix_21640

Conversation

@andriiryzhkov

Copy link
Copy Markdown
Collaborator

Fixes #21640

Users with accented characters in their Windows profile (e.g. C:\Users\Joël\...) can't install AI models. Extraction fails with Failed to open 'C:\Users\Joël\...' – UTF-8 bytes reinterpreted as CP1252.

libarchive's narrow-char APIs go through the ANSI code page on Windows, as does the _fullpath we were using via a realpath shim. Route all pathname handoffs through the wide-char variants (archive_read_open_filename_w, archive_entry_copy_pathname_w, _wfullpath) with UTF-8 ↔ UTF-16 conversion via glib. POSIX unchanged. Old shim removed – it had the same bug this fixes.

@andriiryzhkov andriiryzhkov added this to the 5.6.1 milestone Jul 27, 2026
@andriiryzhkov andriiryzhkov added bugfix pull request fixing a bug scope: AI features AI features related issues and PR labels Jul 27, 2026

@TurboGit TurboGit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@TurboGit
TurboGit merged commit 86d4eb5 into darktable-org:master Jul 28, 2026
5 checks passed
@TurboGit TurboGit added scope: windows support windows related issues and PR priority: release critical cannot release until fixed labels Jul 28, 2026
@andriiryzhkov
andriiryzhkov deleted the fix_21640 branch July 29, 2026 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix pull request fixing a bug priority: release critical cannot release until fixed scope: AI features AI features related issues and PR scope: windows support windows related issues and PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5.6.0 / Windows 11 / AI config generates error message

2 participants