<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Subbu, <DIV><BR class="khtml-block-placeholder"></DIV><DIV>I think that you are right when you say "line endings is platform-specific (not filesystem specific). A fileout on a FAT32 filesystem on a Linux box, should put LF in the file not CRLF."</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>My proposed fix would have made line-endings system specific for Mac, but not for Linux.  Hard to test this one unless you have all the systems.  Please embellish my fix so that it is right for Linux, and add to the bug report.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BLOCKQUOTE type="cite">Reader should be prepared to handle any convention while writers should be <DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">using platform-native convention for text files.</DIV></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>That is in fact what the code does.  For existing files, the CRLF code will detect what is there.  The CRLF platform-specific detection applies only to new files, and only to CRLF text files.<BR><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR style=""></DIV><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Shouldn't this be handled in a primitive or a System Attribute? Attempting to </DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">guess line ending in Squeak code sounds regressive.</DIV></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>I don't see why there is need for a primitive, when a couple of lines of Smalltalk can do the right thing easily enough.  The only problem seems to be getting these fixes into the release.   The bug database is in danger of becoming a black hole<BR><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>Andrew</DIV><DIV><BR><DIV><DIV>On 7 May 2007, at 10:52, subbukk wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hi,</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I bumped into CRLF pollution in SqueakV39.sources file and also saw the bug<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">report</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://bugs.squeak.org/view.php?id=6173">http://bugs.squeak.org/view.php?id=6173</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">by Andrew.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">IMHO, line endings is platform-specific (not filesystem specific). A fileout<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">on a FAT32 filesystem on a Linux box, should put LF in the file not CRLF.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Reader should be prepared to handle any convention while writers should be<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">using platform-native convention for text files.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Shouldn't this be handled in a primitive or a System Attribute? Attempting to<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">guess line ending in Squeak code sounds regressive.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Regards .. Subbu</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV> </BLOCKQUOTE></DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Andrew P. Black</DIV><DIV>Department of Computer Science</DIV><DIV>Portland State University</DIV><DIV>+1 503 725 2411</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></DIV></BODY></HTML>