8000 Fix Windows-specific rasterfile module issue with file names that contain Unicode characters by victoryforce · Pull Request #19063 · darktable-org/darktable · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix Windows-specific rasterfile module issue with file names that contain Unicode characters #19063

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

victoryforce
Copy link
Collaborator

This problem is not reproducible on Linux, only on Windows. So I would be grateful for comments with confirmation from those who have the opportunity to work with darktable on Windows. For me the problem is reproducible on both Windows 10 and Windows 11.

Steps for reproduction:

  • Configure "raster mask files root folder" in the global preferences for the external raster masks module to work.
  • Download any file from https://sample-files-online.com/samples/pfm (their names contain the Unicode symbol multiplication sign ×, (U+00D7)) to the configured folder.
  • In the external raster masks module, select the downloaded file as a mask file.

In the pfm files menu, instead of the name of this file, there will be an empty line, and the file itself will not be applied to the selected image as a mask (due to failure to open a file with that name).

@TurboGit This is a bug fix, so for 5.2.1. But if you want a minimal change for a corrective release, you can take only the first commit. Other commits are maintenance and additional protection from unsanitized data.

A separate commit normalizes the file name before opening in dt_read _pfm, which is even redundant and doing nothing if we guarantee normalization before calling the function. But this PR is just about the fact that this was not done, so in a function that can be used elsewhere in the code, it is better to have its own data sanitization.

@TurboGit TurboGit added this to the 5.2.1 milestone Jul 11, 2025
@TurboGit TurboGit added bugfix pull request fixing a bug priority: medium core features are degraded in a way that is still mostly usable, software stutters release notes: pending labels Jul 11, 2025
@TurboGit
Copy link
Member

@wpferguson : Can you double check that this works on your side? TIA.

@TurboGit TurboGit added the scope: windows support windows related issues and PR label Jul 11, 2025
@wpferguson
Copy link
Member

It'll take a couple of hours. Got a couple real life things to do :)

@wpferguson
Copy link
Member

@TurboGit Confirmed the problem (5.2.0) and confirmed the fix works.

@victoryforce
Copy link
Collaborator Author

Suggestion for the release notes:

Fixed the inability of external raster masks module to work in Windows with PFM files that have Unicode characters in the file name.

8000
Copy link
Member
@TurboGit TurboGit left a comment

Choose a reason for hiding this comment

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

Thanks to both of you @victoryforce & @wpferguson !

@TurboGit TurboGit merged commit fb6e463 into darktable-org:master Jul 11, 2025
6 checks passed
@TurboGit
Copy link
Member

Merged in master & first commit in 5.2.x branch.

@victoryforce victoryforce deleted the fix-rasterfile-module-issue branch July 11, 2025 20:00
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: medium core features are degraded in a way that is still mostly usable, software stutters scope: windows support windows related issues and PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0