Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'win32': 0.03; '22,': 0.09; 'lawrence': 0.09; 'subject:2.7': 0.09; 'cc:addr:python-list': 0.11; 'windows': 0.15; '(via': 0.16; '23,': 0.16; 'caring': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:unicode': 0.16; 'subject:python': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'written': 0.21; 'command': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'unicode': 0.24; '(or': 0.24; 'cc:2**0': 0.24; 'supported': 0.26; 'header:In-Reply-To:1': 0.27; 'character': 0.29; 'especially': 0.30; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'font': 0.31; 'subject:time': 0.33; 'maybe': 0.34; 'problem': 0.35; 'subject: (': 0.35; 'something': 0.35; 'received:google.com': 0.35; 'subject:one': 0.36; 'should': 0.36; 'problems': 0.38; 'nov': 0.38; 'pm,': 0.38; 'does': 0.39; 'subject:more': 0.64; 'obvious': 0.74; '2014,': 0.84; 'truetype': 0.84; 'to:none': 0.92 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=GJyzJVp7YVq8do+Pdk0McUXSf/jroHqMItaDcrEwxJU=; b=SUPPJYiWh7K/ipfXApt1clCxoc83evEZwE3Juw4CIzn5iecRR1CVEPThL6sfiXAF+f 5xbPYN330ziHARMA+CE9JcivFL5UjIUTGdzGHvkGwsHt06WeM7LXw+nb41jm2ayferw6 ua5aZXyE0BQ0dK/iI3xMbDqqkMiWysbIKxpfT+xMnyhZEaSSdIHS3c0uQAfBeBYz2gGH FStfY2XDrR8/VxoBOtCt96wJiCa1kJQol/GCc9bSVPclkQmrxlNEop9hLNzt+yw5Mehp nez6voG85fh7RpV/h08M7oiyI28CgLJrqN7IiGpNyy73TYKTxg0upGfGYeQOqZ2xhnUQ 6tBQ== MIME-Version: 1.0 X-Received: by 10.107.17.79 with SMTP id z76mr11601532ioi.27.1416708716268; Sat, 22 Nov 2014 18:11:56 -0800 (PST) In-Reply-To: <1416707557.2242907.194259261.18485F96@webmail.messagingengine.com> References: <1416491999.209592.193345213.3A6FF9A4@webmail.messagingengine.com> <87ppch8zvx.fsf@elektro.pacujo.net> <87k32p6ow8.fsf@elektro.pacujo.net> <871towik8j.fsf@elektro.pacujo.net> <5470134c$0$12986$c3e8da3$5496439d@news.astraweb.com> <877fyn68m1.fsf@elektro.pacujo.net> <547094a6$0$12984$c3e8da3$5496439d@news.astraweb.com> <87y4r348uf.fsf@elektro.pacujo.net> <87mw7j3z2r.fsf@elektro.pacujo.net> <1416707557.2242907.194259261.18485F96@webmail.messagingengine.com> Date: Sun, 23 Nov 2014 13:11:56 +1100 Subject: Re: python 2.7 and unicode (one more time) 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1416708725 news.xs4all.nl 2848 [2001:888:2000:d::a6]:42001 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:81312 On Sun, Nov 23, 2014 at 12:52 PM, wrote: > On Sat, Nov 22, 2014, at 18:38, Mark Lawrence wrote: >> ... >> That is a standard Windows build. He is again conflating problems with >> using the Windows command line for a given code page with the FSR. > > The thing is, with a truetype font selected, a correctly written win32 > console problem should be able to print any character without caring > about codepages (via use of WriteConsoleW instead of WriteFile). You > cannot rely on having the codepage set to 65001, especially since 65001 > isn't actually a fully supported codepage. Is that true? Does WriteConsoleW support every Unicode character? It's not obvious from the docs whether it uses UCS-2 or UTF-16 (or maybe something else). ChrisA