Menu

#51 parameter parser sensitive to dos/unix cr/lf convention

1d FEM
closed
nobody
None
2014-08-05
2014-07-17
No

I saved the params.txt (sent via email) from Outlook and it contained both cr/lf. When I tried to point xolotl at it, it told me it didn't understand the argument "dummy" -- turns out, it had parsed it with the (value==13) carriage return at the end, i.e. it was a length 6 string, not a length 5 string, and so the exact string equality match failed.

Discussion

  • Sophie Blondel

    Sophie Blondel - 2014-08-05

    Fixed it in the TokenizedLineReader by removing the last character of the line if it is '\r'.

     
  • Sophie Blondel

    Sophie Blondel - 2014-08-05
    • status: open --> closed
     

Log in to post a comment.