Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.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.023 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'jan': 0.12; 'windows': 0.15; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'those,': 0.16; 'written.': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'input': 0.22; 'header:User-Agent:1': 0.23; 'fine': 0.24; 'script': 0.25; 'header:X-Complaints-To:1': 0.27; 'header :In-Reply-To:1': 0.27; "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; 'to:addr :python-list': 0.38; 'files': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'either': 0.39; 'received:org': 0.40; 'manually': 0.60; 'tell': 0.60; 'received:173': 0.61; 'jul': 0.74; 'ending': 0.78; 'received:fios.verizon.net': 0.84; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Strange behaviour with os.linesep Date: Wed, 24 Jul 2013 12:01:33 -0400 References: <51ED3CEB.1070706@gmail.com> <51eea057$0$29971$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-251-66.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 In-Reply-To: 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1374681716 news.xs4all.nl 15931 [2001:888:2000:d::a6]:56378 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:51145 On 7/23/2013 7:41 PM, Dennis Lee Bieber wrote: > 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? I suspect the problem likes in the file written. Notepad++ works fine with \r\n or \n on input and can produce either on output. > Don't know about those, but SciTE I know has both an menu option for > line ending (, , ), and one for "convert line endings" -- Terry Jan Reedy