<div dir="ltr"><div>Your suggestion doesn't change anything (except it skips checking LC_ALL). <br></div><div>The current code checks first LC_ALL and if it is empty it already checks LANG after that.<br></div><div>en_US is used only if both are empty.</div><div><br></div><div><br></div><div>Jussi</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 7, 2022 at 6:40 PM Martin <<a href="mailto:mbelmonte@belmotek.net">mbelmonte@belmotek.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">El 7/10/22 a las 11:39, bb escribió:<br>
> I had to resort to setting<br>
> all the LC variables known on this planet (and others) to make it aware<br>
> that I was in AU and NOT USA!<br>
<br>
what is G*dAwf&l?<br>
<br>
Are you talking about having to change the Linux desktop configuration? <br>
If so, which one exactly?<br>
You know you can use the locale command right?<br>
<br>
in the gambas code, searching with grep where the word en_US exists I <br>
found that the file gbx_local.c has a function that searches in the <br>
local configuration for the system language but as it does not find it, <br>
it puts en_US.<br>
<br>
In my case that I use a GTK desktop (Manjaro XFCE) the locale command <br>
does not return parameter in the ALL= key (which is what gbx_local.c <br>
looks for).<br>
Maybe changing a little bit this C function can correct the issue.<br>
<br>
const char *LOCAL_get_lang(void)<br>
{<br>
    char *lang;<br>
<br>
    if (!_lang)<br>
    {<br>
        lang = getenv("LC_ALL"); */Here maybe use lang = getenv("LANG")/*<br>
        if (!lang)<br>
            lang = getenv("LANG");<br>
        if (!lang || !*lang)<br>
            lang = "en_US";<br>
        _lang = STRING_new_zero(lang);<br>
    }<br>
<br>
    return _lang;<br>
}<br>
<br>
This is my system locale configuration<br>
LANG=es_ES.utf8<br>
LC_CTYPE="es_ES.utf8"<br>
LC_NUMERIC=es_ES.UTF-8<br>
LC_TIME=es_ES.UTF-8<br>
LC_COLLATE="es_ES.utf8"<br>
LC_MONETARY=es_ES.UTF-8<br>
LC_MESSAGES="es_ES.utf8"<br>
LC_PAPER=es_ES.UTF-8<br>
LC_NAME=es_ES.UTF-8<br>
LC_ADDRESS=es_ES.UTF-8<br>
LC_TELEPHONE=es_ES.UTF-8<br>
LC_MEASUREMENT=es_ES.UTF-8<br>
LC_IDENTIFICATION=es_ES.UTF-8<br>
LC_ALL=<br>
<br>
<br>
----[ <a href="http://gambaswiki.org/wiki/doc/netiquette" rel="noreferrer" target="_blank">http://gambaswiki.org/wiki/doc/netiquette</a> ]----<br>
</blockquote></div></div>