Kbase P100769: LOOKUP function returns incorrect result when Chinese or Korean codepage is used
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  23/07/2008 |
|
Status: Verified
FACT(s) (Environment):
Progress 9.1E
SYMPTOM(s):
LOOKUP function returns incorrect result.
-cpinternal and -cpstream set to Chinese or Korean codepage.
Running the following code:
MESSAGE LOOKUP('C' , 'A,B,C') VIEW-AS ALERT-BOX.
Incorrect result of '0' is returned. Should return '3'.
CAUSE:
Bug# 20050118-001
FIX:
Upgrade to 9.1E02 or Open Edge 10.0B02
Optionally this workaround could be implemented:
Put the list in a variable, and place the variable in the LOOKUP function as follows:
DEF VAR LST AS CHAR INIT "A,B,C".
MESSAGE LOOKUP("C",LST).