Locales (characters in file names) causing program termination on version 5.10-179 when opening files for editing #7034
Labels
priority: high
Should be fixed with higher urgency
type: bug
Something is not doing what it's supposed to be doing
Milestone
Short description
On version 5.10-179-g11240bc97 - Linux
Using character 'ä' in filenames causes the program to close when trying to open the image file. This happens with Sony A7II generated ARW files, Canon 2000D generated CR2 files, but for some reason, not with Canon R10 generated CR3 files.
Issue didn't exist with 5.10, it started happening after building with the latest commits.
I believe I have narrowed this issue to be caused by an unhandled exception, when the locale settings are messed up. I cannot reproduce the issue with fresh user accounts. I hope it makes sense.
Steps to reproduce
Use any GUI tool that comes with your Linux distribution to mess up the locales to the point starting programs in the console gives the following warning:
Open raw files that are from Sony A7II or Canon 2000D and that have character 'ä' as part of their filenames.
Additional information
Version: 5.10-179-g11240bc97
Branch: dev
Commit: 11240bc
Commit date: 2024-03-28
Compiler: cc 13.2.1
Processor: x86_64
System: Linux
Bit depth: 64 bits
Gtkmm: V3.24.8
Lensfun: V0.3.4.0
Build type: Debug
Build flags: -std=c++11 -ffp-contract=off -Werror=unused-label -Werror=delete-incomplete -fno-math-errno -Wno-attributes -Wall -Wuninitialized -Wcast-qual -Wno-deprecated-declarations -Wno-unused-result -Wunused-macros -fopenmp -Werror=unknown-pragmas -g -ftree-vectorize
Link flags:
OpenMP support: ON
MMAP support: ON
Build OS: Linux 5.15.150-1-MANJARO x86_64
Build date: Wed, 10 Apr 2024 15:37:52 +0000 UTC
Build epoch: 1712763472
Build UUID: 44f15405-8d8e-42a0-9385-6e53cc6b08e6
Other useful information:
GDB:
The text was updated successfully, but these errors were encountered: