Consultor Eletrônico



Kbase P45168: COMPILE PREPROCESS doesn't handle escape characters correctly
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/3/2010
Status: Verified

SYMPTOM(s):

COMPILE PREPROCESS doesn't handle escape characters correctly

Carriage return character stripped when compiling with the PREPROCESS option.


Run-time errors are received when generating the PREPROCESS listing.

Escape characters appear in preprocessed listing as '~' followed by special character.

~n becomes ~ + newline.

~t becomes ~ + tab.

FACT(s) (Environment):

Performing COMPILE <procedure> PREPROCESS <listing>.
Source procedure contains escape characters (~n, ~t etc.).
All Supported Operating Systems
Progress/OpenEdge Product Family
OpenEdge Category: Language (4GL/ABL)

CAUSE:

Bug# OE00095553

FIX:

To work around this behavior, substitute the equivalent ASCII character using the CHR function. For example, for ~n substitute CHR(10).