[racket] CRLF indicator in bottom right of DrRacket

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Tue Mar 13 21:40:57 EDT 2012

When you see that, it means that DrRacket is going to write the line
breaks in the editor as "\r\n" instead of just using "\n".

DrRacket goes into that mode when it opens the file and finds a file
that is both non-empty and all line breaks are \r\n line breaks (ie if
there are both crlf and other unix-style line endings, then DrRacket
uses unix-style \n line endings). This is the precise regexp that it
uses (on the contents of the file):


If this regexp matches, then DrRacket uses the unix-style convention
(\n only) and otherwise it uses \r\n.

(All this only happens on windows, of course.)


On Tue, Mar 13, 2012 at 8:00 PM, Harry Spier <vasishtha.spier at gmail.com> wrote:
> Dear list members,
> When I open one of the files I'm editing in DrRacket there is a "CRLF"
> displayed with an orange background in the lower right side of DrRacket just
> before the current line and column numbers..  This only happens with this
> one file.  When I open other files the CRLF indicator doesn't appear.  At
> first I thought it indicated that CRLF was the line terminator, but CRLF is
> the line terminator in all the files I'm editing and the indicator only
> shows up for this one file.
> If I open the file in a tab the CRLF indicator always appears, but if I
>  select and copy the file from one tab to a second tab the indicator doesn't
> appear in the second tab.
> Can someone tell me what this indicator is?
> Thanks,
> Harry Spier
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users

Posted on the users mailing list.