Closed ffwema closed 3 months ago
The UTF-16LE
encoding of EAC log files is only preserved, if they contain a log checksum (#51). However, the attached example log file does not contain a log checksum.
Sorry, forgot to check #51 before posting. Do you perhaps know the reason for changing the encoding of (checksum-less) log files? I know it's not terribly important, but I've just always preferred to keep my logs "unaltered". Anyway, I can reproduce the issue with example log file with checksum.
Thanks for the additional info and posting the example log file, which contains localized ==== Log checksum
.
This needs to be fixed...
Do you perhaps know the reason for changing the encoding of (checksum-less) log files?
The original request primarily concerned log files with checksum.
Well, if you decide to preserve the encoding only for logs with checksums, this would probably work as a quick temporary fix:
// Preserve original UTF-16LE encoding of EAC log files, which contain a log checksum
if (text.StartsWith("Exact Audio Copy") && text.EndsWith(" ===="))
Yes, this will be fixed.
@ffwema A build with a fix has been prepared in #331, which also preserves the encoding of localized EAC logfiles, which contain a log checksum, like in example log file with checksum.
A tiny bug: when encoding with CUETools, the EAC log encoding is not always preserved (the problem was partially solved in version 2.1.8). This example log file (apologies for the .txt extension but for some reason the GitHub does not allow me to upload files with .log extension) is UTF-16 LE BOM encoded, however the CUETools converts it to UTF-8-BOM. EAC encodes logs as: