Tcl Library Source Code

Ticket Change Details
Login
Overview

Artifact ID: 5e81fd939c695f81d3dc049287decd31c16c6c6a25ce129b52051a2e40be1cf5 (Awaiting Moderator Approval)
Ticket: 7bd2d439ca61da14a9fc5e8372e5fb1f86c28ff1
"crc32 -filename $name" end in error on files with special content (not encoding problem)
User & Date: anonymous 2025-08-05 12:57:49
Changes

  1. comment changed to:
    Old Tcl scripts running on 8.6.x+ with corresponding Tcllib for crc32 package produce a checksum.
    Now with Tcl 9.0.1 and corresponding Tcllib the crc32 package do the same,
    but for some file's content an error occur.
    
    Error message from "::crc::crc32" is "integer value too large to represent".
    Problem seems to be inside of an operation of
    "::crc::Crc32Update" and/or "::crc::Crc32Final".
    If You install BAWT 3.0.1 64-Bit Tcl/Tk 9.0.1 for/on Windows 10/11,
    You can check at least with the two following smallest files available:
    C:\Tcl\lib\poTcllib3.0.0\poExec.tcl      2024-08-16 20:26:04   4108
    C:\Tcl\lib\tcllib2.0\valtype\luhn5.tcl   2024-09-13 19:48:12   4121
    
    Both files have correct UTF-8 encoding with simple UNIX-LF.
    So there is another reason for this problem than the encoding of the file's contents.
    (My first thinking is therefore wrong and I changed this description.)
    Can anybody debug deeper into this?
    
    Simple test in Tcl:
    package require crc32
    ::crc::crc32 -filename "C:/Tcl/lib/tcllib2.0/valtype/luhn5.tcl"
    
    I use on ActiveTcl 8.6.4.1 crc32 1.3.2 and found it on BAWT-distribution 3.0.1,
    Tcllib 2.0, crc32 1.3.4 thanks.
    
    Best greetings, Thomas [TWu]
    
  2. foundin changed to: "2.0 with 1.3.4"
  3. login: "anonymous"
  4. mimetype: "text/plain"
  5. priority changed to: "6"
  6. title changed to:
    "crc32 -filename $name" end in error on files with special content (not encoding problem)