Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Terry Reedy Newsgroups: comp.lang.python Subject: Re: Unicode failure Date: Sat, 5 Dec 2015 01:06:04 -0500 Lines: 32 Message-ID: References: <20151204130738.76313c43@imp> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de 9uwuGa7xP205uK7Jc8jQTQTZbNOQRVxiE0Cp3H3c2wvw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '1200,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'jan': 0.11; 'fail,': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'reedy': 0.16; 'subject:Unicode': 0.16; 'wrote:': 0.16; '>>>': 0.20; 'windows': 0.20; 'header:In-Reply-To:1': 0.24; 'header:User- Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'windows,': 0.29; 'character': 0.29; 'print': 0.30; 'idle': 0.33; 'but': 0.36; 'received:71': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'test': 0.39; 'to:addr:python.org': 0.40; 'entire': 0.61; 'received:fios.verizon.net': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: pool-71-185-227-36.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:100028 On 12/4/2015 10:22 PM, Random832 wrote: > On 2015-12-04, Terry Reedy wrote: >> Tk widgets, and hence IDLE windows, will print any character from \u00= 00 >> to \uffff without raising, even if the result is blank or =EF=BF=BF. = Higher >> codepoints fail, but allowing the entire BMP is better than any Window= s >> codepage. > > Well, any bar 1200, 1201, 12000, 12001, 65000, 65001, and 54936. Test before you post. >>> for cp in 1200, 1201, 12000, 12001, 65000, 65001, 54936: print(chr(cp)) =09 =D2=B0 =D2=B1 =E2=BB=A0 =E2=BB=A1 =EF=B7=A8 =EF=B7=A9 =ED=9A=98 --=20 Terry Jan Reedy