Skip to content
Tcl Source Code View Ticket
Login

View Ticket

incorrect <eol> format in some of the CVS rcs repository fil

Closed / Fixed219080ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:10:24
OriginalBugID: 5096 Bug
Version: 8.3
SubmitDate: '2000-04-17'
LastModified: '2000-04-19'
Severity: LOW
Status: Released
Submitter: techsupp
ChangedBy: hobbs
OS: All Windows
FixedDate: '2000-04-19'
FixedInVersion: 8.3.1
ClosedDate: '2000-10-25'


Name:
David Gravereaux

CVS:
Apr 13 2000 as of 8:25p PST (main trunk line)

Comments:
I wouldn't have cared or noticed, but tcltest.exe can't source
    library/reg1.0/pkgIndex.tcl without error.
    
    I'm guessing, but it looks like dos formatted text files got added to
    CVS on a unix workstation.

ReproducibleScript:
C:\Projects\TclCvs\tcl8.3>tclsh83
% proc iterate {dir} {
  cd $dir
  puts "testing $dir"
  foreach file [glob -nocomplain *] {
    if {[file isfile $file]} {
      if {[catch {set f [open $file r]}]} { continue }
      fconfigure $f -translation binary -encoding ascii
      while {![eof $f]} {
        set data [read $f 1000]
        if {[regexp -- {\r\r\n} $data]} {
          puts "$file has incorrect <eol> sequence of cr,cr,lf"
          break
        }
      }
      close $f
    } elseif {[file isdirectory $file]} {
      lappend dirs $file
    }
  }

  set saveDir [pwd]
  if {[info exist dirs]} {
    foreach dir $dirs {
      iterate [file join $saveDir $dir]
      cd $saveDir
    }
  }
}
% iterate [pwd]

ObservedBehavior:
library/dde1.1/pkgIndex.tcl has incorrect <eol> sequence of cr,cr,lf
library/reg1.0/pkgIndex.tcl has incorrect <eol> sequence of cr,cr,lf
tools/tcl.hpj.in has incorrect <eol> sequence of cr,cr,lf
win/tcl.hpj.in has incorrect <eol> sequence of cr,cr,lf
win/tclWinChan.c has incorrect <eol> sequence of cr,cr,lf
win/tclWinThrd.c has incorrect <eol> sequence of cr,cr,lf



The pkgIndex.tcl files and C files were updated, but not the
tcl.hpj.in which otherwise goof up local builds.  This is
actually the fault of the CVS communication, as locally these
files do not contain CRCRLF (just CRLF). 
-- 04/19/2000 hobbs
welch Closed ticket [219080ffff]. [History diff]2000-10-26 08:34:55
dgp Ticket [219080ffff]: 4 changes [History diff]2001-04-05 08:22:15
Log in (anonymous is fine) to add a comment.