Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e219faca47a5c211f2c2f6e659985f63d2aaf658735ab3bd41f933c1b7f3ef93
Ticket: 3d01d51bc45cf7c53938d23f7ac4a364341a878d
Tcl 9: Cannot write large strings to file
User & Date: pointsman on 2023-02-11 00:26:24
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    This script:
    
    package require Tcl 9.0
    set fd [open large.txt w+]
    puts $fd [string repeat [string repeat [string repeat abc 1000] 1000] 1000]
    close $fd
    
    runs without sign of error.
    
    On debian 11.6 the created file large.txt has a size 1 byte (a linefeed). Seems wrong to me.
    
  5. foundin changed to: "9.0, trunk"
  6. is_private changed to: "0"
  7. login: "pointsman"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "4ca203a8e925aecdd9419645f936bccf18cd6ea7"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "pointsman"
  14. subsystem changed to: "25. Channel System"
  15. title changed to: "Tcl 9: Cannot write large strings to file"
  16. type changed to: "Bug"