Open fm-117 opened 4 months ago
See DISPLAY.CodeElements.txt
for an example of wrong text value:
https://github.com/TypeCobolTeam/TypeCobol/blob/f568ebe67766c1860646407367c492a3a886b827/TypeCobol.Test/Parser/CodeElements/DISPLAY.CodeElements.txt#L96-L97
As for now:
IBM-1140
as default for Debug
and Release
configurationsIBM-1147
as default for EI_Debug
and EI_Release
which are specific to our own internal usePartially fixed by #2633.
We still need:
CODEPAGE
option declared directly in source: the scanner should read the value and dynamically change the encoding of literals for the rest of the document
What is the problem ?
The scanner uses the
MulitlineScanState.EncodingForAlphanumericLiterals
property to get the string value of alphanumeric literals described using the hexadecimal notation. However this property gets its value from the encoding of the source file which is a different notion.Here are the IBM specs for alphanumeric literals written in hex:
How to fix ?