mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
If a saved-report with e.g. relative date, multichoice option is unknown, the report would crash, and the Report-Options would segfault. This commit fixes both: report-date defaults to 'today', multichoice-options defaults to default-value. Following this commit, if a report loads a saved-report or .gcm from a future version, a gnc:warn will be emitted and the report will not crash; it will use relative-date today. Multichoice will remain the default value. Report Options will not segfault. The user will be notified via a gnc:gui-warn dialog
After loading this module, you must also call (gnc:setup-gettext) (setlocale LC_ALL "") at some point to finish initializing the app. This is not done automatically from gncmod-app-utils.c via app-utils.scm because you may need to handle setlocale yourself (or you may already have other code that does).