Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-11-20
17:15 • Closed ticket [219409ffff]: Unix newlines in Windows batch files plus 6 othe... artifact: cd70dd502c user: hobbs
2001-11-07
13:25 • Ticket [219409ffff]: 4 changes artifact: 5e92697b04 user: davygrvy
2001-10-31
06:47 • Open ticket [219409ffff]. artifact: a92509d914 user: davygrvy
2001-10-13
05:56 • Ticket [219409ffff]: 4 changes artifact: e4b6081f0d user: davygrvy
05:56 • Add attachment patch.txt to ticket [219409ffff] artifact: b803c27d90 user: davygrvy
05:56 • Ticket [219409ffff] Unix newlines in Windows batch files status still Closed... artifact: 331274dcd9 user: davygrvy
03:53 • Ticket [219409ffff]: 6 changes artifact: f218441b51 user: mdejong
03:27 • Closed ticket [219409ffff]. artifact: f15b596e7c user: hobbs
2001-09-10
17:04 • Ticket [219409ffff]: 4 changes artifact: ab68f88963 user: dkf
17:03 • Ticket [219409ffff]: 4 changes artifact: 59bb48b977 user: dkf
17:03 • Add attachment fixnl.tcl to ticket [219409ffff] artifact: 5dab575fbd user: dkf
00:20 • Ticket [219409ffff] Unix newlines in Windows batch files status still Open w... artifact: 46eea18f7f user: mdejong
2001-09-09
05:41 • Open ticket [219409ffff]. artifact: cae558a97b user: davygrvy
05:36 • Closed ticket [219409ffff]. artifact: e8576589d8 user: mdejong
04:54 • Ticket [219409ffff]: 4 changes artifact: 4cdec5120d user: hobbs
04:48 • Ticket [219409ffff]: 4 changes artifact: 87b77a6e77 user: davygrvy
03:44 • Ticket [219409ffff]: 4 changes artifact: 255dd86ea3 user: mdejong
2001-08-24
04:50 • Ticket [219409ffff]: 1 change artifact: 004d7f581e user: andreas_kupries
2001-04-07
04:11 • Ticket [219409ffff]: 4 changes artifact: d865410c5b user: davygrvy
2001-02-08
21:50 • Ticket [219409ffff]: 1 change artifact: 4f35c20c1c user: dkf
2000-11-19
18:19 • Ticket [219409ffff]: 1 change artifact: 3897acd4da user: dkf
2000-10-26
05:12 • New ticket [219409ffff]. artifact: 5c93b2a873 user: nobody

Unix newlines in Windows batch files

Closed / Fixed219409ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2000-10-26 05:12:34
OriginalBugID: 6347 Bug
Version: 8.4a1
SubmitDate: '2000-10-09'
LastModified: '2000-10-25'
Severity: MED
Status: UnAssn
Submitter: techsupp
OS: Windows 98
FixedDate: '2000-10-25'
ClosedDate: '2000-10-25'


Name:
David Cuthbert

Comments:
Opening rmd.bat and mkd.bat in a text editor and resaving them usually
    works.

ObservedBehavior:
Cannot build from the tcl8.4a1 ZIP file (using Win98, MSVC 5 and makefile.vc).  The Makefile fails to create the Release and Debug directories because the mkd.bat and rmd.bat scripts were saved with Unix linefeeds.  (Symptom: Make echos the word "OFF" twice, tries to compile the first file, and fails)
dkf Ticket [219409ffff]: 1 change [History diff]2000-11-19 18:19:41
dkf Ticket [219409ffff]: 1 change [History diff]2001-02-08 21:50:55
davygrvyplain2001-04-07 04:11:21
Logged In: YES 
user_id=7549

I beleive the source releases are made from the unix 
makefile, and thus the cvs checkout was done with a unix 
cvs client which sets \n as <eol>.  IMO, this is a TEA 
misunderstanding which states all source files should in LF 
mode.  Some just can't be in LF.  Same is true for the .ini 
file used for the help compiler (CRLF or death).
andreas_kupries Ticket [219409ffff]: 1 change [History diff]2001-08-24 04:50:05
mdejongplain2001-09-09 03:44:15
Logged In: YES 
user_id=90858

Well, perhaps we could check the files into CVS
using the -k flag. That would treat the file
as binary so that \r\n would be used as EOL
even when checked out on a UNIX system.
davygrvyplain2001-09-09 04:48:32
Logged In: YES 
user_id=7549

I find that treating CVS's behavior of <EOL> is perfect for 
{editing mode}, but building and running should require 
some added work in the makefiles to ensure proper <EOL> on 
the special files.  See 219217.

One cannot guarentee what <EOL> will be upon checkout.  Fix 
it in the makefiles.
hobbsplain2001-09-09 04:54:45
Logged In: YES 
user_id=72656

Go ahead with the -k flag.
mdejongplain2001-09-09 05:36:15
Logged In: YES 
user_id=90858

I changed the files to binary with CRLF linefeeds.
That should fix things, if not this bug report
can be re-opened.
davygrvyplain2001-09-09 05:41:18
Logged In: YES 
user_id=7549

Use of the -kb on a text file is improper, your just going 
to twist yourself in a knot.

Say I do a checkout on Mac and edit the file and my editor 
decided to strip off the LF.  Then I commited.

haha.

you'll be revisiting this one day!
mdejong Ticket [219409ffff]: 1 change [History diff]2001-09-10 00:20:07
dkfplain2001-09-10 17:03:33
File Added - 10579: fixnl.tcl
dkfplain2001-09-10 17:04:14
Logged In: YES 
user_id=79902

Would the attached script help resolve this more sensibly?
hobbsplain2001-10-13 03:27:02
Logged In: YES 
user_id=72656

This was marked 'Fixed' but 'Open', but I believe it was 
meant to be closed.  In any case, perhaps the right 
solution is to run tools/fixEOL.tcl on the necessary files 
before we make the distro.
mdejongplain2001-10-13 03:53:34
Logged In: YES 
user_id=90858

I don't think this problem is fixed. I fixed it by adding
the -kb flag to the files but davygrvy undid my fix and
left it in the old state. This bug is now assigned to him
so he should deal with it.
davygrvyplain2001-10-13 05:56:47
Logged In: YES 
user_id=7549

Mo, this is a build/makedist issue, not a repository 
issue. -kb will twist the problem into knots.

Patch attached for unix/Makefile.in .  I know the script 
works, but am unable to test it, as I don't run unix here.
davygrvyplain2001-10-13 05:56:48
File Added - 11908: patch.txt
davygrvyplain2001-10-31 06:47:04
Logged In: YES 
user_id=7549

Should this move over to the patches tracker?
davygrvyplain2001-11-07 13:25:42
Logged In: YES 
user_id=7549

Set http://sourceforge.net/tracker/?func=detail&aid=451333&group_id=10894&atid=360894

to fixed/closed when this is fixed/closed (patch accepted and comitted), too.
hobbsplain2001-11-20 17:15:40
Logged In: YES 
user_id=72656

fixed in 8.4a4cvs.
Log in (anonymous is fine) to add a comment.

Attachments: