gnucash stable: mingw32: Force the C runtime to use the process's code page.

John Ralls jralls at code.gnucash.org
Wed Sep 16 20:19:07 EDT 2026


Updated	 via  https://github.com/Gnucash/gnucash/commit/e27a3c62 (commit)
	from  https://github.com/Gnucash/gnucash/commit/38754227 (commit)



commit e27a3c6230aac638128c73345a6936e9fe912e77
Author: John Ralls <jralls at ceridwen.us>
Date:   Sun Sep 13 15:45:10 2026 -0700

    mingw32: Force the C runtime to use the process's code page.
    
    The process code page is set by the manifest created in the
    previous commit. Left to its own devices msvcrt will set the
    character set to the locale's DOS codepage. This commit overrides
    that by setting the locale charset to the C locale's which is
    always the process one.
    
    ucrt doesn't override the process char set so this isn't necessary
    and will be reverted immediately after merge.
    
    Assisted-by: Claude Code Opus 5
    Signed-off: John Ralls <jralls at ceridwen.us>



Summary of changes:
 gnucash/gnucash-core-app.cpp      | 3 +++
 gnucash/gnucash-locale-platform.h | 9 +++++++++
 gnucash/gnucash-locale-windows.c  | 8 ++++++++
 gnucash/gnucash.cpp               | 6 ++++++
 4 files changed, 26 insertions(+)



More information about the gnucash-patches mailing list