1
0
Fork 0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-05-25 23:16:03 +02:00
BLAKE3/.github/workflows
Jack O'Connor dc2a79d266 add newline and backslash escaping to b3sum output
As proposed in
https://github.com/BLAKE3-team/BLAKE3/issues/33#issuecomment-623153164

This brings b3sum behavior close to md5sum. All occurrences of backslash
are replaced with "\\", and all occurrences of (Unix) newline are
replaced with "\n". In addition, any line containing these escapes has a
single "\" prepended to the front.

Filepaths were already being converted to UTF-8 with to_string_lossy(),
but this commit adds an extra warning when that conversion is in fact
lossy (because the path is not valid Unicode). This new warning is
printed to stdout, with the goal of deliberately breaking --check (which
is not yet implemented) in this case.
2020-05-05 00:59:31 -04:00
..
build_b3sum.py build b3sum binaries in CI for new tags 2020-04-28 11:04:29 -04:00
ci.yml add newline and backslash escaping to b3sum output 2020-05-05 00:59:31 -04:00
tag.yml build b3sum binaries in CI for new tags 2020-04-28 11:04:29 -04:00
upload_github_release_asset.py build b3sum binaries in CI for new tags 2020-04-28 11:04:29 -04:00