Project

General

Profile

Bug #9894

new line with no carriage present in FWD conversion on windows

Added by Stefan Vieru over 1 year ago. Updated 5 months ago.

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

Related to Testing - Support #6859: preprocessor tests Test

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\n when we have a NL; Meaning when we have a // comment, we have two /r/n after 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

#3 Updated by Greg Shah 5 months ago

  • topics 4GL Preprocessor added

Also available in: Atom PDF