whikloj / BagItTools

A PHP BagIt library
MIT License
11 stars 5 forks source link

Bags with CR only line endings not handled correctly. #36

Closed whikloj closed 2 years ago

whikloj commented 2 years ago

The spec says lines can end with CR, LF or CRLF. Currently this library only deals with LF and CR. Files with only a carriage return cause problems.

This ticket is to correctly handle bagit.txt, bag-info.txt, fetch.txt and all manifest and tagmanifest files that might only use CR line endings.