Bug #9894
new line with no carriage present in FWD conversion on windows
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:
0%
billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:
reviewer:
production:
No
env_name:
topics:
4GL Preprocessor
Related issues
History
#1 Updated by Stefan Vieru over 1 year ago
- in OE with
/* */comments we don't have two/r/n, but with//we do. The following processes as it is./* outside of comments and strings there is a quirk of the "alternative codings" */ message "test". /* - the ;) alternative coding construct will be converted by the preproc to the } character */
- if we have
//instead of/* */, the output is:// outside of comments and strings there is a quirk of the "alternative codings" message "test". // - the ;) alternative coding construct will be converted by the preproc to the } character
- in OE we have
\r\nwhen we have a NL; Meaning when we have a//comment, we have two/r/nafter it. - in FWD whether we use Preprocessor on windows or unix we have ONLY
\n, due to the following I think// normalize new lines if (nextChar == '\r') { int pastNextChar = mread(); if (pastNextChar != '\n') { super.unread(pastNextChar); } nextChar = '\n'; } if (nextChar == '\n') { return nextChar; }
#2 Updated by Stefan Vieru over 1 year ago
- Related to Support #6859: preprocessor tests added