Re: [GNC-dev] Early locale initialization

2021-03-20 Thread Frank H. Ellenberger
Hi, Am 20.03.21 um 17:43 schrieb John Ralls: > You're right about the order, but doesn't guile call setlocale before gtk > does? That's significant only because Guile spawns a bunch of threads and > those keep the locale generated by its setlocale call. The main thread that > GnuCash and Gtk us

Re: [GNC-dev] Early locale initialization

2021-03-20 Thread John Ralls
> On Mar 20, 2021, at 3:10 AM, Geert Janssens > wrote: > > Op vrijdag 19 maart 2021 02:19:46 CET schreef John Ralls: >>> On Mar 18, 2021, at 6:08 AM, Geert Janssens >>> wrote:> >>> Op donderdag 18 maart 2021 13:56:35 CET schreef Derek Atkins: On Thu, March 18, 2021 7:58 am, Geert Janss

Re: [GNC-dev] Early locale initialization

2021-03-20 Thread Geert Janssens
Op vrijdag 19 maart 2021 02:19:46 CET schreef John Ralls: > > On Mar 18, 2021, at 6:08 AM, Geert Janssens > > wrote:> > > Op donderdag 18 maart 2021 13:56:35 CET schreef Derek Atkins: > >> On Thu, March 18, 2021 7:58 am, Geert Janssens wrote: > >> [snip] > >> > >>> 3. While all three allow to tw

Re: [GNC-dev] Early locale initialization

2021-03-18 Thread John Ralls
> On Mar 18, 2021, at 6:08 AM, Geert Janssens > wrote: > > Op donderdag 18 maart 2021 13:56:35 CET schreef Derek Atkins: >> On Thu, March 18, 2021 7:58 am, Geert Janssens wrote: >> [snip] >> >>> 3. While all three allow to tweak some environment parameters, only linux >>> allows the user to

Re: [GNC-dev] Early locale initialization

2021-03-18 Thread Geert Janssens
Op donderdag 18 maart 2021 13:56:35 CET schreef Derek Atkins: > On Thu, March 18, 2021 7:58 am, Geert Janssens wrote: > [snip] > > > 3. While all three allow to tweak some environment parameters, only linux > > allows the user to do so via the environment file. For Windows and Macos > > that > > f

Re: [GNC-dev] Early locale initialization

2021-03-18 Thread Derek Atkins
On Thu, March 18, 2021 7:58 am, Geert Janssens wrote: [snip] > 3. While all three allow to tweak some environment parameters, only linux > allows the user to do so via the environment file. For Windows and Macos > that > file is only read after locale is set. Whether that's a good thing depends >

Re: [GNC-dev] Early locale initialization

2021-03-18 Thread Geert Janssens
Op donderdag 18 maart 2021 12:58:28 CET schreef Geert Janssens: > On Windows the code will first look for environment variables "LC_ALL", > "LC_MESSAGES" or "LANG" (in that order). If any of those exists it will try > to convert that to a locale. If that fails it will fall back to the system > defa

Re: [GNC-dev] Early locale initialization

2021-03-18 Thread Geert Janssens
In addition, the Macos code doesn't return the final locale string that was set. As a result the PINFO message to log the locale details to the trace file is partly bogus. Granted this was written with the Windows locale issues in mind, but again, it would be nice if this could be made consisten