Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '(at': 0.04; 'problem:': 0.07; 'parsed': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'windows': 0.15; '>on': 0.16; 'message- id:@4ax.com': 0.16; 'opposite': 0.16; 'otoh,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'those,': 0.16; 'wrote:': 0.18; 'url:home': 0.24; 'script': 0.25; 'least': 0.26; 'header:X-Complaints-To:1': 0.27; 'lines': 0.31; "d'aprano": 0.31; 'lies': 0.31; 'steven': 0.31; 'file': 0.32; 'option': 0.32; 'open': 0.33; 'problem': 0.35; 'subject:with': 0.35; 'but': 0.35; '+0200,': 0.36; 'charset:us-ascii': 0.36; 'received:76': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'manually': 0.60; 'tell': 0.60; 'jul': 0.74; 'ending': 0.78; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Strange behaviour with os.linesep Date: Tue, 23 Jul 2013 19:41:00 -0400 Organization: IISS Elusive Unicorn References: <51ED3CEB.1070706@gmail.com> <51eea057$0$29971$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-249-27-96.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1374622873 news.xs4all.nl 15871 [2001:888:2000:d::a6]:54580 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:51110 On 23 Jul 2013 15:25:12 GMT, Steven D'Aprano declaimed the following: >On Tue, 23 Jul 2013 13:42:13 +0200, Vincent Vande Vyvre wrote: > >> On Windows a script where de endline are the system line sep, the files >> are open with a double line in Eric4, Notepad++ or Gedit but they are >> correctly displayed in the MS Bloc-Notes. > >I suspect the problem lies with Eric4, Notepad++ and Gedit. Do you >perhaps have to manually tell them that the file uses Windows line >separators? > Don't know about those, but SciTE I know has both an menu option for line ending (, , ), and one for "convert line endings" I also know Windows Notepad (at least on WinXP) would have the opposite problem: termination files were displayed as single lines (Wordpad, OTOH, correctly parsed those). -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/