header files with DOS ^M line endings
Closed / Fixed2024943fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2008-07-22 18:42:20
In the activestate cvs head snapshot titled tcl-20080721.tar.gz , the following header files were found to end in \r rather than the \n needed by Unix c compilers: ./generic/tclOODecls.h ./generic/tclTomMathDecls.h ./generic/tclPlatDecls.h ./generic/tclOOStubInit.c ./generic/tclIntPlatDecls.h ./generic/tclStubInit.c ./generic/tclOOIntDecls.h ./generic/tclDecls.h ./generic/tclIntDecls.h
dgpplain2008-07-23 22:17:21
Logged In: YES user_id=80530 Originator: NO das, you fixed this?
dasplain2008-07-23 22:24:30
Logged In: YES user_id=90580 Originator: NO yup, thanks, hadn't noticed this bug (guessing the problem was caused by running genstubs on windows? should be fixable by forcing unix line-endings in the genstubs script?)
andreas_kupriesplain2008-07-23 23:21:44
Logged In: YES user_id=75003 Originator: NO ActiveState has the following local change to genStubs.tcl > # Hardwire the genstubs output to Unix eol. > fconfigure $out -translation lf In the command 'rewriteFile', just after opening the output file.
dasplain2008-07-24 03:50:12
Logged In: YES user_id=90580 Originator: NO Hi Andreas, seems like that change could go into the general genStubs.tcl, or was there a specific concern that led you keep this change local to AS?
andreas_kupriesplain2008-07-24 03:53:04
Logged In: YES user_id=75003 Originator: NO I believe that I was unsure about the general impact of the change.
patthoytsplain2008-07-25 20:29:20
Logged In: YES user_id=202636 Originator: NO Woa. This sounds like a crap plan to me. Headers are text files and so should be ending in \r\n on a windows box. A correctly configured cvs client will check text files out of the repository and perform crlf conversion such that in the repository they are unix-style and on the working copy on windows they are windows-style. When it gets screwed up is if you use a unix client to checkout on a shared network drive and then use a dos cvs client to commit. If you intend to force generated text files to be unix-line endings then you have to mark the files as binary to avoid line ending conversions (cvs admin -kb). However what we want is text files on windows to have windows line endings so the original default of 'auto' will be correct. Then its up to the cvs client to be correct or used correctly. Reopening.
dasplain2008-07-25 20:45:22
Logged In: YES user_id=90580 Originator: NO Hi Pat, that all makes sense, the genstubs change sounds a bad idea in general in that case... the culprit of the incorrect windows line ending commit was Alexandre with the TIP304 implementation, I don't know what platform/procedure he used to commit? The wrong line-endings committed problem seems to come up frequently (e.g. with manpages recently), is there some common mistake/misconfiguration on windows that leads to this? in any case no genstubs change was made, so closing again...
dkfplain2008-07-25 21:03:20
Logged In: YES user_id=79902 Originator: NO For some reason, some windows cvs clients get confused (mixing up between tortoisecvs and the one in the msys package would guarantee this for example) and yet it's a difficult problem to spot from windows as the (usable) tools tend to conceal. (OTOH, certain files in the .../win hierarchy *must* be CRLF...) Seems to be no way to guarantee that this won't happen in the future.
Log in (anonymous is fine) to add a comment.