Consultor Eletrônico



Kbase P102192: NODE-VALUE-TO-LONGCHAR without CODEPAGE attribute will crash the session if used with FIX-CODEPAGE m
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/28/2005
Status: Unverified

FACT(s) (Environment):

OpenEdge 10.0B

SYMPTOM(s):

OpenEdge 10.0B01

Using NODE-VALUE-TO-LONGCHAR to return the value of an XML node

Progress session GPFs when attempting to run the code

Specifying FIX-CODEPAGE method

CODEPAGE attribute of the NODE-VALUE-TO-LONGCHAR method is not used so the value should be converted to the fixed code page

Stack trace from PROWIN32.EXE reads:

dbut_stnclr

CAUSE:

Bug# 20050317-028

FIX:

Upgrade to 10.0B02 or later.

Workaround:
Specify the CODEPAGE attribute of NODE-VALUE-TO-LONGCHAR and ensure that it is set to the same value as the code page specified in the FIX-CODEPAGE method:

<field>:NODE-VALUE-TO-LONGCHAR(<value>, '<codepage>').

For example:

FIX-CODEPAGE(lcValue) = 'UTF-8'.
...
hVal:NODE-VALUE-TO-LONGCHAR(lcValue, 'UTF-8').