$NLS_LOCALE

Set the default locale (language and country) for the application, or set locale-based processing off.

$NLS_LOCALE { = } ln_CY | system | classic

Arguments

  • ln_CY—locale identifier, in which ln specifies the two-letter language code and CY the two-letter country code as defined by ISO 639; for example, fr_CA for French (Canada)
  • classic—Uniface behavior prior to Uniface 9.4; no locale-based processing is performed
  • system—NLS processing behavior is based on the locale defined for the local (client) system; Windows only

Defaults

Assignment file: All
Section: [SETTINGS]
Default value: classic

Description

The NLS locale affects the default way in which data is displayed, sorted, and transformed in case conversion. The value of $NLS_LOCALE can be overridden in ProcScript using $nlslocale.

The NLS locale is the first step of a fall-through mechanism, in which the value of $nlslocale is automatically used by $NLS_CASE, $NLS_FORMAT, and $NLS_SORT_ORDER. The default value of these settings is nlslocale, which means that they use the value set by $NLS_LOCALE to control their specific area of functionality.

If $NLS_LOCALE is set to system or a specific locale, locale-based processing rules are applied, unless they are overridden by one of these other assignment settings, or in ProcScript. If it is set to classic, Uniface does not apply locale-based processing unless the locale is set in ProcScript using $nlslocale. For more information, see Language and Locale.

Note: The NLS locale is not used for locale-based processing in the client side of a dynamic server page. To set the locale for the DSP client, you can use $webinfo("locale").

Related Topics