"read error" with BLAKE3 CRC because of space in front of filename
Moderators: Hacker, petermad, Stefan2, white
"read error" with BLAKE3 CRC because of space in front of filename
When I have a space as first character (either file or directory) and make a CRC with BLAKE3, it shows on check "read error.
If I remove the first space in the file or directory, the checksum can still be performed with the already existing BLAKE3 CRC file.
(Both TCMD 10.50 and TCMD 10.51RC3)
With checksums such as SHA256, md5, ... I don't have that problem.
If I remove the first space in the file or directory, the checksum can still be performed with the already existing BLAKE3 CRC file.
(Both TCMD 10.50 and TCMD 10.51RC3)
With checksums such as SHA256, md5, ... I don't have that problem.
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: "read error" with BLAKE3 CRC because of space in front of filename
That's because the SHA256 list file format has a * in front of the file name, so TC knows that there is a space at the start of the name. The Blake3 format doesn't have that *, so TC just skips the spaces between checksum and name characters. I'm sorry but I don't see a solution here.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: "read error" with BLAKE3 CRC because of space in front of filename
TC just adds TWO spaces so it should skip TWO spaces.
Andrzej P. Wozniak
Polish subforum moderator
Polish subforum moderator
Re: "read error" with BLAKE3 CRC because of space in front of filename
Will this bug affect this Total planned feature?, thanks
ghisler(Author) wrote: 2022-06-01, 16:08 UTC Compare by content does not use hashes, it compares the two files directly.
I plan to use blake3 for the verify option when copying, and for the duplicate file finder.
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: "read error" with BLAKE3 CRC because of space in front of filename
Other programs may add 1 or 3 spaces, I cannot know that. But I have checked what b3sum_windows_x64_bin.exe does, the official blake3 sum tool - it also adds exactly 2 spaces. So what I will do is ignore 1 or 2 spaces and keep the rest.TC just adds TWO spaces so it should skip TWO spaces.
No, because it does not create a hash file.Will this bug affect this Total planned feature?, thanks
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: "read error" with BLAKE3 CRC because of space in front of filename
Thanks in advance from Antwerp, Belgium.
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: "read error" with BLAKE3 CRC because of space in front of filename
This should be fixed in RC4, could someone please test it?
1. Rename a file with Shift+F6 by adding one or more spaces at the start
2. Select the file
3. Choose menu Files - Create CRC checksums
4. Create a BLAKE3 checksum
5. Select the BLAKE3 checksum file
6. Choose menu Files - Verify checksums
Step 6 did return a file not found error in RC3 and older.
26.08.22 Fixed: Verify checksums: Only skip 2 spaces between checksum and file name (unless the name starts with *) and consider the rest as being part of the file name (32/64)
1. Rename a file with Shift+F6 by adding one or more spaces at the start
2. Select the file
3. Choose menu Files - Create CRC checksums
4. Create a BLAKE3 checksum
5. Select the BLAKE3 checksum file
6. Choose menu Files - Verify checksums
Step 6 did return a file not found error in RC3 and older.
26.08.22 Fixed: Verify checksums: Only skip 2 spaces between checksum and file name (unless the name starts with *) and consider the rest as being part of the file name (32/64)
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: "read error" with BLAKE3 CRC because of space in front of filename
Fix confirmed for RC4
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64