Please enable JavaScript to view this site.

A-Shell Reference

Reviewed and revised December 2023

tab(-10, AG_GETLOCALE); chr(127);     Tab(-10,x) Syntax Notes

AG_getLOCALE (115) retrieves the name of the user's locale on the client workstation.

Parameters

locale

the name of the locale on the client, e.g. "en-US," the Windows indication for English language with USA regional settings.

Response

locale CR

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.