Skip to content
Tcl Source Code History Of Ticket 218403ffffffffff
Login

History Of Ticket 218403ffffffffff

Artifacts Associated With Ticket 218403ffffffffff

  1. Ticket change [e15c823b87] (rid 87429) by nobody on 2000-10-26 00:57:09:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 5296 Bug
      Version: 8.3
      SubmitDate: '2000-04-28'
      LastModified: '2000-05-08'
      Severity: SER
      Status: Closed
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Solaris
      FixedDate: '2000-10-25'
      ClosedDate: '2000-05-08'
      
      
      Name:
      Donal Fellows
      
      Comments:
      The only user-level work-around is to manipulate the data at the C
          level, which stinks big-time.
      
      ReproducibleScript:
      set f [open [info nameofexecutable] r] ;# Could be any file
      puts [fconfigure $f -translation]
      fconfigure $f -translation binary -encoding binary
      puts [fconfigure $f -translation]
      close $f
      
      ObservedBehavior:
      The above script outputs the following:
        auto
        lf
      Thus, putting the channel into binary mode has in fact made it switch into changing all CRLF sequences in the data into single LFs.  This is a great way to corrupt data being read from a binary file (I found this when trying to write a PNG file reader) and is _utterly_ wrong...
      
      DesiredBehavior:
      It should output:
        auto
        binary
      And having set the encoding and translation to binary for a channel, I should just get the bytes that are being passed along that channel.
      
      
      
      This is actually correct, although confusing.  The point of
      translation is that it tells us what we are converting externally
      into the internal linefeed char (which is LF).  With -binary,
      this means only lf == LF, which is the correct noop to give us
      binary translation. 
      -- 05/08/2000 hobbs
      
    4. foundin initialized to: "obsolete: 8.3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "62. (unused)"
    10. title initialized to:
      -translation binary misinterpreted as -transation lf
      
    11. type initialized to: "Bug"
  2. Ticket change [0738e7c2fa] (rid 89351) by welch on 2000-10-26 08:21:18:

    1. closedate changed to: "2000-10-26T01:21:18"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [31c5489a7b] (rid 93491) by dgp on 2001-04-03 07:07:19:

    1. closedate changed to: "2001-04-03T00:07:19"
    2. closer changed to: "dgp"
    3. resolution changed to: "Invalid"
    4. subsystem changed to: "25. Channel System"