Programmer's Reference

OS/2 Presentation Manager

As illustrated in the figure above, each IBM Smalltalk locale name corresponds to an ordered pair of integers representing an OS/2 country code and OS/2 code page. Table 54 defines the mappings from IBM Smalltalk locale definitions to country code and code page pairs. Locales that are not directly supported by the operating system are marked with a horizontal bar and are not available on OS/2.

For OS/2 Presentation Manager, the platform locale information is a combination of values retrieved from the operating system and the country control panel settings. When the platform default locale is requested (for example, LCMonetary for: #(' ')), values are taken from the country control panel settings. When information for a specific locale is requested (for example, LCMonetary for: #('english' 'us')), the default values for that locale are obtained from the operating system, even if the locale requested is the same as the platform default locale.

When information is unavailable from the platform, U.S. English default values are provided. The following table shows the values that are not available from the operating system, along with their default values.

Note:The country control panel setting for monetary leading zero is not supported and is ignored on OS/2.

Table 53. Items not provided by OS/2 and their default values

Class Item IBM Smalltalk default value
LCMessages noStr 'No'
yesStr 'Yes'
LCMonetary intCurrSymbols Set to same operating system-supplied value as currencySymbol
intFracDigits Set to same operating system-supplied value as fracDigits
monGrouping '3 0'
monThousandsSep Set to operating system thousands separator
negativeSign '-'
positiveSign ''
LCNumeric decimalPoint Set to same operating system-supplied value as monDecimalPoint
grouping '3 0'
LCTime abDay #('Sun' 'Mon' 'Tues' 'Wed' 'Thu' 'Fri' 'Sat')
abMon #('Jan' 'Feb' 'Mar' 'Apr' 'May' 'Jun' 'Jul' 'Aug' 'Sep' 'Oct' 'Nov' 'Dec')
day #('Sunday' 'Monday' 'Tueday' 'Wednesday' 'Thusday' 'Friday' 'Saturday')
mon #('January' 'February' 'March' 'April' 'May' 'June' 'July' 'August' 'September' 'October' 'November' 'December')

Use of the country control panel

Changing the current country using the country control panel does not change the platform default locale. The platform default locale is defined by the config.sys file and can be modified using the OS/2 selective install.

Table 54. Map from locale names to OS/2 platform values

Locale langauge Locale territory Country code Code pages
arabic arabic 785 864, 437 850
croatian yugoCroatian 38 852, 850
czech czechoslovakia 42 852, 850
danish denmark 45 865, 850
dutch belgium 32 437, 850
dutch netherlands 31 437, 850
english australia 61 437, 850
english britain 44 437, 850
english canada - -
english ireland - -
english new zealand - -
english us 1 437, 850
estonian estonia - -
faeoroese faeroelsl - -
farsi iran - -
finnish finland 358 437, 850
french belgium 32 437, 850
french canada 2 863, 850
french france 33 437, 850
french switzerland 41 437, 850
german austria - -
german germany 49 437, 850
german switzerland 41 437, 850
greek greece - -
hebrew israel 972 862, 437, 850
hindi india - -
hungarian hungary 36 852, 850
icelandic iceland 354 850, 861
italian italy 39 437, 850
italian switzerland 41 437, 850
japanese japan 81 932, 942, 437, 850
korean korea 82 949, 944, 437, 850
lappish lapland - -
lettish latvia - -
lithuanian lithuania - -
maltese malta - -
norwegian norway (Bokmal) - -
norwegian norway (Nynorsk) 47 865, 850
polish poland 48 852, 850
portuguese brazil - -
portuguese portugal 351 860, 850
russian russia - -
simpChinese china 86 936, 946, 437, 850
slovak czechoslovakia 42 852, 850
spanish mexico 3 437, 850
spanish spain (Mod) 34 437, 850
spanish spain (Trad) 34 437, 850
swedish sweden 46 437, 850
thai thailand - -
tradChinese taiwan 88 938, 948, 437, 850
turkish turkey 90 857, 850
urdu pakistan - -


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]