Artifact
5e81fd939c695f81d3dc049287decd31c16c6c6a25ce129b52051a2e40be1cf5:
Ticket change
[5e81fd939c]
- Ticket [7bd2d439ca61da14|7bd2d439ca] <i>"crc32 -filename $name" end in error on files with special content (not encoding problem)</i> status still Open with 6 other changes
by
anonymous
2025-08-05 12:57:49.
(unpublished)
D 2025-08-05T12:57:49.313
J comment Old\sTcl\sscripts\srunning\son\s8.6.x+\swith\scorresponding\sTcllib\sfor\scrc32\spackage\sproduce\sa\schecksum.\r\nNow\swith\sTcl\s9.0.1\sand\scorresponding\sTcllib\sthe\scrc32\spackage\sdo\sthe\ssame,\r\nbut\sfor\ssome\sfile's\scontent\san\serror\soccur.\r\n\r\nError\smessage\sfrom\s"::crc::crc32"\sis\s"integer\svalue\stoo\slarge\sto\srepresent".\r\nProblem\sseems\sto\sbe\sinside\sof\san\soperation\sof\r\n"::crc::Crc32Update"\sand/or\s"::crc::Crc32Final".\r\nIf\sYou\sinstall\sBAWT\s3.0.1\s64-Bit\sTcl/Tk\s9.0.1\sfor/on\sWindows\s10/11,\r\nYou\scan\scheck\sat\sleast\swith\sthe\stwo\sfollowing\ssmallest\sfiles\savailable:\r\nC:\\Tcl\\lib\\poTcllib3.0.0\\poExec.tcl\s\s\s\s\s\s2024-08-16\s20:26:04\s\s\s4108\r\nC:\\Tcl\\lib\\tcllib2.0\\valtype\\luhn5.tcl\s\s\s2024-09-13\s19:48:12\s\s\s4121\r\n\r\nBoth\sfiles\shave\scorrect\sUTF-8\sencoding\swith\ssimple\sUNIX-LF.\r\nSo\sthere\sis\sanother\sreason\sfor\sthis\sproblem\sthan\sthe\sencoding\sof\sthe\sfile's\scontents.\r\n(My\sfirst\sthinking\sis\stherefore\swrong\sand\sI\schanged\sthis\sdescription.)\r\nCan\sanybody\sdebug\sdeeper\sinto\sthis?\r\n\r\nSimple\stest\sin\sTcl:\r\npackage\srequire\scrc32\r\n::crc::crc32\s-filename\s"C:/Tcl/lib/tcllib2.0/valtype/luhn5.tcl"\r\n\r\nI\suse\son\sActiveTcl\s8.6.4.1\scrc32\s1.3.2\sand\sfound\sit\son\sBAWT-distribution\s3.0.1,\r\nTcllib\s2.0,\scrc32\s1.3.4\sthanks.\r\n\r\nBest\sgreetings,\sThomas\s[TWu]
J foundin 2.0\swith\s1.3.4
J login anonymous
J mimetype text/plain
J priority 6
J title "crc32\s-filename\s$name"\send\sin\serror\son\sfiles\swith\sspecial\scontent\s(not\sencoding\sproblem)
K 7bd2d439ca61da14a9fc5e8372e5fb1f86c28ff1
U anonymous
Z b027066844ff11e73aac91d70bed178d