Re: printf issue with thousands separator

2022-07-06 Thread Dr . Jürgen Sauermann
Hi Christian, thanks for the info. The problem is, though, that calling setlocale() in GNU APL is problematic since I cannot possibly know beforehand what the locale of the user will be. And I cannot know all peculiarities of all possible locale

Re: printf issue with thousands separator

2022-07-06 Thread Blake McBride
On Wed, Jul 6, 2022 at 7:07 AM Dr. Jürgen Sauermann < mail@jürgen-sauermann.de> wrote: > [...] > The problem is, though, that calling setlocale() > in GNU APL is problematic since I cannot possibly know beforehand > what the locale of the user will be. > Can't this be set in ~/.gnu-apl/preference

Re: printf issue with thousands separator

2022-07-06 Thread Dr . Jürgen Sauermann
Hi Blake, in theory: yes. The problem is that the behaviour of locales can be quite unpredictable and therefore allowing to change it means that the underlying glibc may produce results that are no easy to foresee. The current problem (the thousands' separator) is a good example for this. For mo

Re: printf issue with thousands separator

2022-07-06 Thread Blake McBride
Hi Jürgen, I see. Perhaps controlling this programmatically, as I believe you described, does make more sense. Thanks! Blake On Wed, Jul 6, 2022 at 11:29 AM Dr. Jürgen Sauermann < mail@jürgen-sauermann.de> wrote: > Hi Blake, > > in theory: yes. The problem is that the behaviour of locales ca