Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As discussed in the comments of the issue, I propose a new fix for is…
…sue #59 : •restore support for single \r and \n characters as line endings in TextDocument (revert to the previous version of the file) •update CobolFile class : when reading a fixed length line, if we encounter a line ending character after Unicode conversion of an original EBCDIC character, replace it on the fly with a question mark '?' char Document clearly two restrictions of our compiler : •because of the internal conversion of the program text to Unicode characters in .Net or Java, we do not support alphanumeric literals containing non printable EBCDIC characters •because of the feature allowing free text format and variable line length, we do not support alphanumeric literals containing line ending characters NB : when we say we do not support these two cases, it will only have an impact if we generate Cobol from a TypeCobol program and then compile it with the IBM compiler. For Cobol code analysis in memory, it has no impact. In the two cases above, the solution is to modifiy the original EBCDIC program text before using our tool : •initialize numeric tables directly with numbers instead of their corresponding chars •set line ending chars individually Inside alphanumeric literals, for exemple with reference modification
- Loading branch information