In the past I have encountered some inconsistencies using DrRacket (DrScheme) programs producing files I could not read back because of the lf cq lfcr inconsitensy. Since a few months I have not noticed any difficulty. IIRC this was with checking equality of strings produced by DrRacket with those in the code itself. I'll keep you posted. Thanks for thinking about simple Window users like me.
My Suggestion: Always read cr, lf and crlf as identical, both in code and read data. So "\n" should match cr, lf and crlf. This may have nasty consequenses for procedure string-length. Drop cr and lf and make it 'newline', crlf included. The best thing, of course, would be microsoft to adapt to more generally adopted conventions, but they probably can't because of backward compatibility. May be at the DrScheme level, we should ignore all control characters, except newline, encoded as cr, lf or crlf, (the last combination being counted as one single character, how nasty this may be) I'll inform you of my experiences with you latest adaptation in this respect. Thanks, Jos -----Original Message----- From: users-boun...@racket-lang.org [mailto:users-boun...@racket-lang.org] On Behalf Of Robby Findler Sent: sábado, 01 de octubre de 2011 3:16 To: Racket Users Subject: [racket] CRLF vs LF & windows I've pushed a change today in the way that DrRacket handles line endings under windows. If you are a regular windows user who has the energy to give the pre-release a try for your usual DrRacketeering for a week or month or so to share you feedback on this change, that'd be great. In old versions, DrRacket would open a file in any style and then save it using CRLF (under windows; it would always save regular LF files on other platforms). In the current pre-release, DrRacket checks to see if every line ends in CRLF in the file and, if so, it saves the file in CRLF (and puts a little warning in the bottom of the window that it is in this mode). Otherwise, it saves the file in LF mode. There is a preference to go back to the old behavior too. Feedback welcomed. Thanks, Robby _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users