Menu

#308 NumeRe cannot read and write source codes

v1.1.x
fixed
None
v1.1.0
Bug Fix
2018-05-01
2018-04-11
Erik Hänel
No

NumeRe cannot read and write source codes if they contain escape characters, which are used by NumeRe to escape quotation marks, line breaks or tabulator characters.

Analysis:
While reading a source code file, every backslash has to be replaced by the '\ ' sequence. Furthermore, the -kmq string parser option has to be adapted to only apply on '\"' sequences.

Implementation:
The fix was implemented as proposed by the analysis. Implementation tests were passed successfully.

Documentation:
The fix was documented in the changes log.

Tests:
The fix was tested manually with a large source code file. The remaining issue was fixed. No further deviation detected. Bug fix implemented successfully.

Discussion

  • Erik Hänel

    Erik Hänel - 2018-04-11
    • status: open --> accepted
     
  • Erik Hänel

    Erik Hänel - 2018-04-11
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,9 @@
     NumeRe cannot read and write source codes if they contain escape characters, which are used by NumeRe to escape quotation marks, line breaks or tabulator characters.
    +
    +**Analysis:**
    +
    +**Implementation:**
    +
    +**Documentation:**
    +
    +**Tests:**
    
    • status: accepted --> analyzing
     
  • Erik Hänel

    Erik Hänel - 2018-04-11
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,6 +1,7 @@
     NumeRe cannot read and write source codes if they contain escape characters, which are used by NumeRe to escape quotation marks, line breaks or tabulator characters.
    
     **Analysis:**
    +While reading a source code file, every backslash has to be replaced by the `'\ '` sequence. Furthermore, the `-kmq` string parser option has to be adapted to only apply on `'\"'` sequences.
    
     **Implementation:**
    
    • status: analyzing --> implementing
     
  • Erik Hänel

    Erik Hänel - 2018-04-11
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,7 +4,9 @@
     While reading a source code file, every backslash has to be replaced by the `'\ '` sequence. Furthermore, the `-kmq` string parser option has to be adapted to only apply on `'\"'` sequences.
    
     **Implementation:**
    +The fix was implemented as proposed by the analysis. Implementation tests were passed successfully.
    
     **Documentation:**
    +The fix was documented in the changes log.
    
     **Tests:**
    
    • status: implementing --> testing
     
  • Erik Hänel

    Erik Hänel - 2018-05-01
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -10,3 +10,4 @@
     The fix was documented in the changes log.
    
     **Tests:**
    +The fix was tested manually with a large source code file. The remaining issue was fixed. No further deviation detected. Bug fix implemented successfully.
    
    • status: testing --> fixed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB