* 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
This commit is contained in:
Derek Atkins 2002-10-03 17:39:03 +00:00
parent 058284bc1c
commit f3fe12becb
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2002-10-03 Derek Atkins <derek@ihtfp.com>
* 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 <derek@ihtfp.com>
* configure.in: check for ltdl.h

View File

@ -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.)...