From f3fe12becba01f22e49eafe6c9e772487f671613 Mon Sep 17 00:00:00 2001 From: Derek Atkins Date: Thu, 3 Oct 2002 17:39:03 +0000 Subject: [PATCH] * src/scm/main.scm -- move (setlocale ...) earlier in the startup. it needs to run before app-utils is loaded (because gnc_localeconv() caches the first run -- so if that happens before setlocale, you're stuck!) git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7262 57a11ea4-9604-0410-9ed3-97b8803252fd --- ChangeLog | 6 ++++++ src/scm/main.scm | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e53bbb4e5c..f6a0f6360e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-10-03 Derek Atkins + * src/scm/main.scm -- move (setlocale ...) earlier in the startup. + it needs to run before app-utils is loaded (because gnc_localeconv() + caches the first run -- so if that happens before setlocale, you're + stuck!) + 2002-10-02 Derek Atkins * configure.in: check for ltdl.h diff --git a/src/scm/main.scm b/src/scm/main.scm index 6c1235f113..1415de5e64 100644 --- a/src/scm/main.scm +++ b/src/scm/main.scm @@ -350,6 +350,9 @@ string and 'directories' must be a list of strings." (gnc:debug "starting up (1).") (gnc:setup-debugging) + ;; before doing ANYTHING, set the locale! + (setlocale LC_ALL "") + ;; initialize the gnucash module system (gnc:module-system-init) @@ -362,7 +365,6 @@ string and 'directories' must be a list of strings." (gnc:module-load "gnucash/app-utils" 0) (gnc:setup-gettext) - (setlocale LC_ALL "") ;; Now we can load a bunch of files. (load-from-path "path.scm") (load-from-path "command-line.scm") ;; depends on app-utils (N_, etc.)...