Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:Python': 0.06; 'python3': 0.07; 'redirected': 0.07; 'string': 0.09; 'get.': 0.09; 'locale': 0.09; 'cc:addr:python-list': 0.11; 'blindly': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'input': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'text': 0.33; 'except': 0.35; 'received:google.com': 0.35; 'words,': 0.36; 'doing': 0.36; "didn't": 0.36; 'wrong': 0.37; 'system,': 0.38; 'even': 0.60; "you're": 0.61; "you've": 0.63; 'jul': 0.74; '"simply': 0.84; 'lying': 0.84; 'to:none': 0.92; 'instructed': 0.95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=0M68iK0VESvQSDeiaZmH1eAFtgCuFrYPF31kg4GyW48=; b=TH0W3Kp+X7AUb9MEonfj3vXSNL9/1Q/LlmVNnwSJFoYXwqY2stRp+SwishxS1O1Gy+ KDd/2oDrH/DYMB42Ry+dwYUZdkMqgmBbyfi7vSyjwtzEaKmarl1rY3jizLFSbaW9bw+9 RR8nShOQJab3UCTFM6mbqcZcXELTcPjbgkHLpLIUErMNDzOvXIncZGqNeK/ieD0yQ5fu eVy+BEfQ9+wiLMMvVRaEJFpDruDnm9eWzVzOEBpM053mKLCS4g+Cgdyv0qvRBm8EGOTS f1tIpKIVL4Xx1UbQX+14tCF0QqPBI7t1rD0mwjuGqv0RY1ticHQYXMUXNCkfk9WfZl0E IByQ== MIME-Version: 1.0 X-Received: by 10.220.166.9 with SMTP id k9mr30283294vcy.20.1405524205937; Wed, 16 Jul 2014 08:23:25 -0700 (PDT) In-Reply-To: <87oawpe5be.fsf@elektro.pacujo.net> References: <57ajo9poljjre4c4ig0n0ss8kph8k78lp0@4ax.com> <5389cb53$0$29978$c3e8da3$5496439d@news.astraweb.com> <99b7b2a2-7521-42d7-a5a0-1a35d4d5b922@googlegroups.com> <53C4A454.9010600@gmail.com> <87zjga4j4v.fsf@elektro.pacujo.net> <53c57bae$0$9505$c3e8da3$5496439d@news.astraweb.com> <87iomy4ciy.fsf@elektro.pacujo.net> <53c5f6dc$0$9505$c3e8da3$5496439d@news.astraweb.com> <87egxl4zq8.fsf@elektro.pacujo.net> <53c62e7f$0$29897$c3e8da3$5496439d@news.astraweb.com> <871ttlfune.fsf@elektro.pacujo.net> <53c66ba8$0$9505$c3e8da3$5496439d@news.astraweb.com> <87sim1e9dt.fsf@elektro.pacujo.net> <87oawpe5be.fsf@elektro.pacujo.net> Date: Thu, 17 Jul 2014 01:23:25 +1000 Subject: Re: Python 3 is killing Python From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1405524209 news.xs4all.nl 2936 [2001:888:2000:d::a6]:36819 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:74562 On Thu, Jul 17, 2014 at 12:39 AM, Marko Rauhamaa wrote: > In other words, the well-meaning Python3 blindly obeys the locale even > though I "simply stipulated" that my input is UTF-8. Except that you didn't - that input was not UTF-8. When you put a text string as redirected input and then change LANG, you're lying to the system, and you deserve all you get. Why are you even doing this, other than to be able to point and laugh at programs that do the wrong thing - when you've instructed them wrongly? ChrisA