SUMMARY Wrong comparison results when one of the files has UTF8-BOM encoding. STEPS TO REPRODUCE 1. Open kdiff3 v1.9.2 to compare a.cpp and b.cpp OBSERVED RESULT see attachment result_1.9.2.png EXPECTED RESULT see attachment result_0.9.98.png
Created attachment 139776 [details] result_1.9.2.png
Created attachment 139777 [details] result_0.9.98.png
Created attachment 139778 [details] a.cpp
Created attachment 139779 [details] b.cpp
Git commit 01e94170f3a1bed1c06c6cc57b40ec7163fca6f8 by Michael Reeves. Committed on 08/07/2021 at 20:34. Pushed by mreeves into branch 'master'. Restore custom codec. Document QTextCodec behavior in regard to registration. Move the creatation of UTF8BOMCodec to main.cpp. Was originally inside the options dialog creation . FIXED-IN:1.9.3 M +2 -1 src/SourceData.cpp A +54 -0 src/UTF8BOMCodec.h [License: GPL(v2.0+)] M +9 -0 src/main.cpp https://invent.kde.org/sdk/kdiff3/commit/01e94170f3a1bed1c06c6cc57b40ec7163fca6f8
Git commit 62a90288bd1b1a83aaed9ae565fc79ec9f2260f2 by Michael Reeves. Committed on 08/07/2021 at 20:32. Pushed by mreeves into branch '1.9'. Restore custom codec. Document QTextCodec behavior in regard to registration. Move the creatation of UTF8BOMCodec to main.cpp. Was originally inside the options dialog creation . FIXED-IN:1.9.3 (cherry picked from commit ac8b825c7b51297650a5b149f7280fe0f6ee916d) M +2 -1 src/SourceData.cpp A +54 -0 src/UTF8BOMCodec.h [License: GPL(v2.0+)] M +9 -0 src/main.cpp https://invent.kde.org/sdk/kdiff3/commit/62a90288bd1b1a83aaed9ae565fc79ec9f2260f2