[Gambas-user] Gambas called by Apache does not respect LANG?
Christof Thalhofer
chrisml at deganius.de
Sun Feb 20 18:08:15 CET 2022
Hello Benoît,
Am 20.02.22 um 17:30 schrieb Benoît Minisini:
> I don't know. In the past, both $LANG and $LC_ALL had to be set to the
> requested language, but now, at least on my Ubuntu 21.10, only $LANG is
> set. To 'fr_FR.UTF-8' on my system. And I have the '$LANGUAGE' variable
> set to 'fr' (I don't know why these two variables).
>
> Try to set the '$LANGUAGE' variable, or set '$LC_ALL' to 'de_DE.UTF-8',
> to see if it changes anything.
Nope :(
---------------------------------------------------------
With Response
.ContentType = "text/plain; charset=utf-8"
.Begin
Env["LANGUAGE"] = "de"
Env["LC_ALL"] = "de_DE.UTF-8"
Print "LANG: " & Env["LANG"] & " " &
"LANGUAGE: " & Env["LANGUAGE"] & " " &
"LC_ALL: " & Env["LC_ALL"] & " " &
Format(Date(2000, 7, 1), "mmmm")
.End
End With
---------------------------------------------------------
prints:
'LANG: de_DE.UTF-8 LANGUAGE: de LC_ALL: de_DE.UTF-8 July'
... crazy ...
Alles Gute
Christof Thalhofer
--
Dies ist keine Signatur
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220220/ec9ff0bf/attachment-0001.sig>
More information about the User
mailing list