Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cce4663cdf830e6eb3b9f2969cdbdbcd745e788e
Ticket: 1657421fffffffffffffffffffffffffffffffff
default translation of stdout on unix == crlf?
User & Date: wmipf on 2007-02-11 17:42:19
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Hi,
    
      $ tclsh
      % fconfigure stdout
    
    reports on Debian linux:
    
      -blocking 1
      -buffering line
      -buffersize 4096
      -encoding iso8859-15
      -eofchar {}
      -translation crlf  <--
      -mode 38400,n,8,1
      -xchar
    
    i.e. after each output line comes a CRLF, not, as could be expected from the default in tclUnixPort.h, just LF.
    
    I can observe this with version 8.5a5, but also with the version shipped with Debian sarge, 8.4. It seems to be unimportant whether I start tclsh in a xterm, or in e.g. acme or gnome-terminal.
    
    Perhaps the additional \r normally won't be observed, since programs like xterm or gnome-terminal apparently do not display it, but acme does.
    
    The problem described in a thread "Wrong default end-of-line from tclsh", http://www.dbforums.com/showthread.php?t=938067, seems to have the same background.
    
    Michael
    
    
  4. foundin changed to: "obsolete: 8.5a5"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "wmipf"
  10. subsystem changed to: "None"
  11. title changed to: "default translation of stdout on unix == crlf?"
  12. type changed to: "Bug"