Consultor Eletrônico



Kbase 21381: I18N -cpcase and the Case Rules
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   02/12/2008
Status: Verified

GOAL:

I18N. Use of the -cpcase parameter and its relation to the case rules.

CAUSE:

The Case Code Page (-cpcase) parameter specifies what case table you want to use to establish case rules for the code page used in Progress' memory. The memory code page is set with the Internal Code Page (-cpinternal) parameter.

NOTE: This parameter is not for telling Progress to convert all characters to uppercase during input.

The -cpcase parameter receives the casetablename value. A case table tells Progress how to convert a character in the code page from uppercase to lowercase or from lowercase to uppercase. Progress uses a case table when it encounters code such as:

The Progress 4GL CAPS and LC functions

The Progress SQL-89 UPPER and LOWER functions

Case tables have two sections; one for converting a character to uppercase, and the other for converting a character to lowercase.

NOTE: Languages that do not distinguish between uppercase and lowercase, such as Arabic and Hebrew, still have case tables. These case tables map each code page element to itself. This means that if an application tries to change the case of, say, an Arabic character string, the result is the same character string.

FIX:

If the user wants to have the whole Progress session with Uppercase mode, he could use the WIN32 API Function, keybd_event.

For more information regarding this function please refer to Progress Knowledge Base Solution 21380.


Progress Internationalization Guide, "Understanding Code Pages"
Progress Solutions:
Solution 16296, "What Is a Code Page Conversion and What Causes Error (6063)?"
Solution 16242, "How CONVMAP Relates to Code Page and Collation Settings"
Solution 20633, "I18N Internationalization Startup Parameters Explained"
Solution 21380, "How To Call WIN32 API Function: keybd_event"