Use OS Locale (-useOsLocale)

Use the Use OS Locale (-useOsLocale) parameter to set certain default localization options for OpenEdge clients.

Operating system and syntax Windows -useOsLocale
Use with Maximum value Minimum value Single-user default Multi-user default
Client Session    — — — —

This parameter causes the AVM to set certain SESSION system handle attributes based on the current Windows locale settings.

The following table lists these SESSION system handle attributes and shows the startup parameters that individually affect the value of each attribute.

SESSION system handle attribute Associated startup parameters
DATE-FORMAT Date Format (-d)
NUMERIC-DECIMAL-POINT Fractional Separator (-numdec), Convert OS Locale Non-breaking Space (-numsepnonbsp)
NUMERIC-FORMAT European Numeric Format (-E), Fractional Separator (-numdec), Thousands Separator (-numsep)
NUMERIC-SEPARATOR Thousands Separator (-numsep), Convert OS Locale Non-breaking Space (-numsepnonbsp)

If any of the startup parameters shown in this table appear on the same command line with the -useOsLocale parameter, any that follow -useOsLocale override the setting from -useOsLocale and any that -useOsLocale follows are overridden by the setting from -useOsLocale.

On Windows, use -numsepnonbsp before -useOsLocale when the Windows locale uses a non-breaking space (U+00A0) as the digit-grouping symbol or decimal separator. This parameter converts the non-breaking space to a regular space before OpenEdge sets the NUMERIC-SEPARATOR and NUMERIC-DECIMAL-POINT attributes of the SESSION system handle.

In a session accessing .NET objects, Progress recommends that you use this startup parameter to resolve potential discrepancies between localization settings in your ABL session and the embedded .NET Common Language Runtime (CLR). Using this parameter makes your ABL session conform to Windows (and therefore .NET) settings. If you want to override these settings in your ABL session, you can also propagate these overrides to the CLR by instantiating a .NET System.Globalization.Cultureinfo class and making the appropriate settings using the properties and methods of this instance.