Closed adamski closed 3 years ago
for now at least you can run dos2unix
on that file and it should load fine. Presume you know that but in case you don't!
Sure, also easy to fix in our project using the library, just thought I'd report here in case you were not aware of it.
I was not! Appreciate the flag and will definitely think about how to fix. I guess just strop \r if they show up is the standard approach. Thank you!
Basically I need to replace std::getline with something more like this https://gist.github.com/josephwb/df09e3a71679461fc104
And then add your file to our test suite (presume you are OK if I do that but want to check!)
The file was taken from the zip file of scales from the Scala website.
Great. Turns out we already had a test dos le in our test set; I just only checked the parsing not the stripping.
PR and change coming shortly. I'll update surge also so it uses it before the 19 release.
OK fix in place along with expanding the test some. Thanks!
Oooh one more tweak coming. All our tests in tuning-lib pass with this change but one surge test is failing. Stay tuned!
Sneaky extra line at end of file check failed and we test that in surge tests but not tuning lib tests. All good to go now. Updating surge also.
With some
scl
files, I assume those with Windows/DOS line endings,stringRep
contains a string ending with\r
wilson5.scl.txt