fktn-k / fkYAML

A C++ header-only YAML library
MIT License
67 stars 7 forks source link

#375 Fix newline code normalization in UTF-8 encoded file input #376

Closed fktn-k closed 1 month ago

fktn-k commented 1 month ago

This PR has fixed the newline code normalization of CR+LF into LF contained in a given file for deserialization, which is the root cause of the bug reported in the issue #375.
Before the fix, CR+LF newline codes were normalized mistakenly into CR, which broke the subsequent deserialization process which intentionally ignores the existence of CR for optimization.
By correcting the normalization logic, CR+LF are now successfully normalized into LF.

Furthermore, since the normalized input value checks were somehow dropped in the input_adapter module test cases, the appropriate checks have also been added.


Pull Request Checklist

Read the CONTRIBUTING.md file for detailed information.

Please don't

github-actions[bot] commented 1 month ago

:octocat: Upload Coverage Event Notification

Coverage data has been uploaded for the commit 5fcb72cd05ad92a8722e5254980edfae2685ae27. You can download the artifact which contains the same file uploaded to the Coveralls and its HTML version.

Name fkYAML_coverage.pr376.zip
ID 1828296426
URL https://github.com/fktn-k/fkYAML/actions/runs/10456730369/artifacts/1828296426
coveralls commented 1 month ago

Pull Request Test Coverage Report for Build 10456730369

Details


Totals Coverage Status
Change from base Build 10442147415: 0.0%
Covered Lines: 3971
Relevant Lines: 3971

💛 - Coveralls