Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'binary': 0.07; 'string': 0.09; 'defines': 0.09; 'library?': 0.09; 'null,': 0.09; 'received:internal': 0.09; 'subject:characters': 0.09; 'windows,': 0.09; 'python': 0.11; 'bug': 0.12; 'windows': 0.15; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.212': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:66.111.4.27': 0.16; 'received:messagingengine.com': 0.16; 'received:out3-smtp.messagingengine.com': 0.16; 'subject: \n ': 0.16; 'subject:windows': 0.16; 'size,': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'example': 0.22; 'defined': 0.27; 'header:In-Reply- To:1': 0.27; 'to:2**1': 0.27; 'argue': 0.31; 'sep': 0.31; 'interface': 0.32; 'text': 0.33; 'used,': 0.33; 'maybe': 0.34; 'subject:from': 0.34; 'could': 0.34; 'received:66': 0.35; 'subject:with': 0.35; 'but': 0.35; 'should': 0.36; 'example,': 0.37; 'received:10': 0.37; 'somebody': 0.38; 'to:addr:python- list': 0.38; 'to:addr:python.org': 0.39; 'dave': 0.60; 'from:no real name:2**0': 0.61; 'matter': 0.61; 'first': 0.61; 'header :Message-Id:1': 0.63; 'become': 0.64; 'different': 0.65; 'ending': 0.78; 'excel,': 0.84; 'facto': 0.84; 'job;': 0.84; 'specs.': 0.84; '2013,': 0.91; 'angel': 0.91; 'numerous': 0.93 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= message-id:from:to:mime-version:content-transfer-encoding :content-type:in-reply-to:references:subject:date; s=mesmtp; bh= LCGKwAiMI7WukddBKwDH4sjw514=; b=nTTmY3JhOGHq/sLAMj9HFkDUMNFcHUFQ FUs3Rbyof6dVoNww7/sotKHDkRgliV9oiC5w50OdzfX3o5zV+idX0CJiK6A6KvsP I+RsaLL9m2obDXn+3H3+hE3QY97jOzAqTp/S8c2NmGIXVPlTm2d8GqC2JAgtH+Gp gZWUikQiecE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=smtpout; bh=LCGKwAiMI7WukddBKwDH4sjw514=; b=aRJ xZyPQKuagXE1hYBA9HjE7B9BFmGj3USrDZIVIxzmbD0WHrSaQALW8KwBtNjcX+pc MsjDKBMTAbdS0Wpx5ll69NgBsSdN1cvMIKgHVwWM7vohfxWlRWXnc31pV2QoYY32 zxUHHF6eRhktDhQAsC4nFcljneVajDhGy+Hi3oEg= X-Sasl-Enc: 2iDE7+A/ZDyxUGU5xNmTcYPkIxsd+eZhn2f8AbBMh3jD 1379601567 From: random832@fastmail.us To: Dave Angel , python-list@python.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-d310b333 In-Reply-To: References: <13c19665-6dc9-49fe-88c8-52c643892eba@googlegroups.com> <523A01C5.4080705@mrabarnett.plus.com> Subject: Re: Stripping characters from windows clipboard with win32clipboard from excel Date: Thu, 19 Sep 2013 10:39:27 -0400 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1379601570 news.xs4all.nl 15883 [2001:888:2000:d::a6]:55335 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54425 On Wed, Sep 18, 2013, at 16:13, Dave Angel wrote: > So is the bug in Excel, in Windows, or in the Python library? Somebody > is falling down on the job; if Windows defines the string as ending at > the first null, then the Python interface should use that when defining > the text defined with CF_UNICODETEXT. > > Or maybe it's an example of ill-defined Windows specs. I think it's a matter of ill-defined windows specs - the clipboard data has an exact size, and in principle that size is always used, for example, for numerous binary formats. But the text clipboard has often been treated as a C string by a wide variety of different applications, so one could argue that has become a de facto standard.