Closed Ishadijcks closed 3 years ago
We use C++ standard filestreams for reading files. On a Unix platform, if you feed it a file with CRLF line endings, the CR will be treated as part of the input. My guess is that this means that the CR will end up as part of the vertex name for the second vertex on each line, which will cause all sorts of strangeness.
I'm not sure what the best way of handling this is. The standard library doesn't have a standard way of dealing with different line endings, but we could write our own I suppose. My gut feeling is that a better idea would be to throw an exception if a vertex with a "weird" name is encountered, which would at least give the user a clue that something strange is happening rather than outputting odd results.
to throw an exception if a vertex with a "weird" name is encountered, which would at least give the user a clue that something strange is happening rather than outputting odd results.
Agreed, this sounds like the easiest solution!
I got the following error.
Running it with
--target-file=csv
, the solver runs but messes up in printing the mapping. Not sure why.Performing a
diff
with a working file showed me the only difference in the line endings. I haven't tested it for other formats.For now I've changed my pre-processor to output
LF
line endings, and it works just fine.Just thought I'd let you know, this a great tool, keep it up!