gnucash stable: [gnc-locale-name] Use setlocale(LC_MONETARY, NULL) to retrieve name.
John Ralls
jralls at code.gnucash.org
Mon Jun 23 21:19:06 EDT 2025
Updated via https://github.com/Gnucash/gnucash/commit/d8c68cce (commit)
from https://github.com/Gnucash/gnucash/commit/29b1330e (commit)
commit d8c68cce9e1bd99c812942720758ac6645fe9d57
Author: John Ralls <jralls at ceridwen.us>
Date: Mon Jun 23 18:12:06 2025 -0700
[gnc-locale-name] Use setlocale(LC_MONETARY, NULL) to retrieve name.
Instead of setlocale(LC_ALL, NULL). The uses for the string either create
an ICU locale or sort between German and US TXF reports. On some OSes
where the user has different locales set for one or more categories LC_ALL
produces a dump of all of the LC_FOO variables and their values. That's
not useful for comparing to de_DE and it's too long for ICU, which
crashes.
Meanwhile in dialog-print-checks the RV of setlocale was ignored,
rendering the call a no-op.
Summary of changes:
gnucash/gnome/dialog-print-check.c | 1 -
libgnucash/core-utils/gnc-locale-utils.c | 2 +-
libgnucash/tax/gnc-locale-tax.c | 4 ++--
3 files changed, 3 insertions(+), 4 deletions(-)
More information about the gnucash-patches
mailing list