Path: csiph.com!usenet.pasdenom.info!news.albasani.net!rt.uk.eu.org!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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'encoding': 0.05; 'utf-8': 0.07; 'ascii': 0.09; 'pep': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'jan': 0.12; 'identifiers': 0.16; 'magic': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'supported.': 0.16; 'wrote:': 0.18; '(but': 0.19; 'header:User-Agent:1': 0.23; 'bytes': 0.24; 'source': 0.25; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'code': 0.31; 'python2.7': 0.31; 'should': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'though,': 0.39; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'received:org': 0.40; 'according': 0.40; 'even': 0.60; 'skip:u 10': 0.60; 'received:173': 0.61; 'become': 0.64; 'believe': 0.68; '26,': 0.68; 'default': 0.69; 'subject:this': 0.83; '2.5.': 0.84; 'received:fios.verizon.net': 0.84; 'officially': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Trying to understand this moji-bake Date: Sat, 25 Jan 2014 22:31:58 -0500 References: <52e33f8d$0$29999$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-254-207.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1390707137 news.xs4all.nl 2947 [2001:888:2000:d::a6]:33424 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:64759 On 1/25/2014 2:13 PM, Chris Angelico wrote: > On Sun, Jan 26, 2014 at 4:56 AM, Peter Pearson wrote: >> $ python2.7 -c "import sys; print(sys.stdin.encoding)" >> UTF-8 > > This isn't from stdin, though, it's about the interpretation of the > bytes of source code without a magic cookie. > > According to PEP 263 [1], the default encoding should have become > "ascii" as of Python 2.5. That's what puzzles me. I believe it is actually (but unofficially) latin-1 so that latin-1 accented chars can be used in identifiers even though only ascii is officially supported. -- Terry Jan Reedy