Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.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.056 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'bug.': 0.09; 'properly.': 0.09; 'received:internal': 0.09; 'subject:2.7': 0.09; 'windows': 0.15; '23,': 0.16; 'display,': 0.16; 'meanwhile,': 0.16; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:messagingengine.com': 0.16; 'subject:unicode': 0.16; 'substitution': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'separate': 0.22; 'shell': 0.22; 'unicode': 0.24; '(or': 0.24; 'header:In-Reply-To:1': 0.27; 'characters': 0.30; 'especially': 0.30; 'font': 0.31; 'routine': 0.31; 'another': 0.32; 'quite': 0.32; 'becomes': 0.33; 'subject:time': 0.33; 'received:66': 0.35; 'subject: (': 0.35; 'display': 0.35; 'done.': 0.35; 'subject:one': 0.36; 'done': 0.36; "didn't": 0.36; 'received:10': 0.37; 'nov': 0.38; 'to:addr:python- list': 0.38; 'itself': 0.39; 'realize': 0.39; 'to:addr:python.org': 0.39; 'blank': 0.60; 'dave': 0.60; 'most': 0.60; 'from:no real name:2**0': 0.61; 'conversion': 0.61; 'course': 0.61; 'header:Message-Id:1': 0.63; 'real': 0.63; 'subject:more': 0.64; 'worth': 0.66; 'rendering': 0.68; '2014,': 0.84; 'bitmap': 0.84; 'characters,': 0.84; 'fonts': 0.84; 'truetype': 0.84; 'angel': 0.91; 'box)': 0.91 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= message-id:x-sasl-enc:from:to:mime-version :content-transfer-encoding:content-type:subject:date:in-reply-to :references; s=mesmtp; bh=vA/SZqrRkThlc1ROt5Cr1DvRnl0=; b=oxGXpi Z/U5T02hHBiO4XZl6rD9ZUhaqixiCWWoGfkmVRGfHokuRShW9zg/yL3yxpzmcrQd Ykg5JjS5sUSj0wPNCxxCaxYsTu6T2cJH51oaB6VO0C/jwv+dIOnWt+OlTDPKqpFs zFpNFF4p0V17MelwBixrXF4JpN1itlhglgUGw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:x-sasl-enc:from:to :mime-version:content-transfer-encoding:content-type:subject :date:in-reply-to:references; s=smtpout; bh=vA/SZqrRkThlc1ROt5Cr 1DvRnl0=; b=t/OWSzPU2aRqjDwApMLtqVSFNXmdikZI4MY578R+jyQZ1SYoCCEQ 4kPqDaqcTdMYU0l2yjXnXlbOQXnvejlc9P3fj43XQpjxOyc2nk5MrcxkNeg5IBkH s3yONfAJ2BhaSlJNWzbqmjyrqwQe6kYO2uZDqdUwDVKk7w2jZ5GKaQg= X-Sasl-Enc: X5eXCE6gYRqyEseRq0vR0M9RuczaeBFS+aOHSHS1NY9c 1416805506 From: random832@fastmail.us To: python-list@python.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-53201334 Subject: Re: python 2.7 and unicode (one more time) Date: Mon, 24 Nov 2014 00:05:06 -0500 In-Reply-To: <54724412.6070701@davea.name> References: <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> <1416766412.2453321.194415069.645EFBCF@webmail.messagingengine.com> <54724412.6070701@davea.name> 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: 1416805510 news.xs4all.nl 2831 [2001:888:2000:d::a6]:33990 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:81427 On Sun, Nov 23, 2014, at 15:31, Dave Angel wrote: > I didn't realize Windows shell (DOS box) had that bug. Course I don't > use Windows much the last few years. > > it's one thing to not display it properly. It's quite another to supply > faulty data to the clipboard. Especially since the Windows clipboard > has a separate Unicode type available. It's because console bitmap fonts almost always (always?) only have one codepage's worth of characters, and it's considered better to display A for U+0100 than a blank space, and the clipboard has always been a bit of an afterthought for the windows console. Meanwhile, a truetype font is considered likely to have real glyphs for most characters a user would want to display, so no conversion is done. And there's no font rendering routine for bitmap fonts that will allow for dynamic substitution of glyphs, so it becomes a real A (or whatever) in the console buffer itself - this isn't a conversion done at clipboard-copy time.