Skip to content
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

Fix for crash in dcp.cc #7039

Merged
merged 2 commits into from
May 27, 2024
Merged

Conversation

Lawrence37
Copy link
Collaborator

I was able to reproduce the crash in the linked issue with the environment variable LANG=es_ES and the character "ä" in the file name. Adding a Glib::ustring containing the character to an output stream causes an exception to be thrown. Converting the Glib::ustring into a C-string fixes the crash and correctly prints the file name.

I also made the message only print if verbose mode is enabled.

Fixes #7034.

Stream a C-string of the file name instead of the Glib::ustring. The
ustring can throw an exception with certain locale settings and file
name character combinations, such as with LANG=es_ES and the character
"ä".
Only print the message if verbose is true.
@Lawrence37 Lawrence37 added this to the v5.11 milestone Apr 14, 2024
@Lawrence37 Lawrence37 merged commit 71f452a into Beep6581:dev May 27, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant