Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed6.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'messages.': 0.04; 'interpreted': 0.07; 'subject:messages': 0.09; 'unpack': 0.09; 'cc:addr:python-list': 0.10; ';-)': 0.11; '(the': 0.15; '"right"': 0.16; '-tkc': 0.16; '\\r\\n': 0.16; 'arrived': 0.16; 'carriage': 0.16; 'cleanly': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'message-id:@tim.thechases.com': 0.16; 'received:70.251': 0.16; 'received:dsl.rcsntx.swbell.net': 0.16; 'received:rcsntx.swbell.net': 0.16; 'received:swbell.net': 0.16; 'this)': 0.16; 'wrote:': 0.17; '>>>': 0.18; 'followed': 0.20; 'sends': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'guess': 0.27; 'plain': 0.27; 'dos': 0.27; 'lines': 0.28; 'thinks': 0.29; 'gets': 0.32; 'that,': 0.34; 'text': 0.34; 'too.': 0.35; 'there': 0.35; 'subject: (': 0.36; 'correctly': 0.37; 'does': 0.37; 'subject:: ': 0.38; 'shows': 0.38; 'instead': 0.39; 'end': 0.40; 'your': 0.60; 'here': 0.65; 'ask,': 0.84; 'received:50.22': 0.84 Date: Tue, 09 Oct 2012 05:48:58 -0500 From: Tim Chase User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111120 Icedove/3.1.16 MIME-Version: 1.0 To: Jussi Piitulainen Subject: Re: mangled messages (was: Unpaking Tuple) References: <801f0e2c-7d1d-4e91-bec5-78c5e53a70ec@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Source: X-Source-Args: X-Source-Dir: Cc: python-list@python.org 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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1349780698 news.xs4all.nl 6952 [2001:888:2000:d::a6]:48979 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:31003 On 10/09/12 02:22, Jussi Piitulainen wrote: >>> in 682592 20121008 232126 "Prasad, Ramit" wrote: > [snip mess] >>> How does one unpack this post? ;-) >> >> Since that's not the way it arrived here, i have to ask, how do you >> get these posts? > > I see a carriage return rendered as ^M at the end of every line from > Prasad's messages. Other than that, they are well-formatted plain text > for me, too. > > I guess Prasad's system sends \r\n instead of \n\r (the DOS line-end) > and \r\n gets interpreted as a stray \r followed by end-of-line. Prasad's system is correctly sending the "right" order (DOS line-ends are CR+LF = \r\n, not the other way around). However, it might be that there is no CR+LF on the last line, or that one line is missing the CR, so your viewer heuristic (vim does this) thinks it has Unix NL-only line-endings and shows the ^M on all the lines that have the CR. All for one stray line without. Prasad's email came through cleanly here (gmane + Thunderbird). -tkc