? TAB(-10,AG_GETLOCALE); chr(127);
input "" locale$
AG_getLOCALE (115) retrieves the name of the user's locale on the client workstation.
Parameters
locale (String) [in]
the name of the locale on the client, e.g. "en-US" (Windows indication for English language with USA regional settings).
Comments
There is not currently an equivalent MX_ version to get the server locale, but for ATSD connections, you can use the utility function Fn'GetUserDefaultLocaleName$() in the SOSFUNC:fnwin32utl.bsi module to get the same information. For Linux, the following command will work:
xcall HOSTEX, "locale | grep LANG=", status, locale$
History
2023 September, A-Shell 6.5.1742: Function added to A-Shell.