The setLocale() method may be used to indicate the locale in which text will be returned to the client for the session, while it is connected.

If the locale has not been set for the session while connecting or the setLocale() method has not been called, then the session locale is determined as follows:

1. The value of the SM_LOCALE environment variable.

2. The default is en_US.