Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!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.026 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'subject:file': 0.07; 'received:internal': 0.09; 'windows': 0.15; '*with': 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:66.111.4.27': 0.16; 'received:messagingengine.com': 0.16; 'received:out3-smtp.messagingengine.com': 0.16; 'subject:String': 0.16; 'windows?': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'tests': 0.22; 'unicode': 0.24; 'fine': 0.24; 'question': 0.24; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'chris': 0.29; 'am,': 0.29; "i'm": 0.30; 'ctypes': 0.31; 'sep': 0.31; 'fri,': 0.33; 'actual': 0.34; 'subject:the': 0.34; 'received:66': 0.35; 'objects': 0.35; 'but': 0.35; 'interact': 0.36; 'sequence': 0.36; 'received:10': 0.37; 'expected': 0.38; 'checks': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'skip:u 10': 0.60; 'from:no real name:2**0': 0.61; 'header:Message-Id:1': 0.63; 'to:addr:gmail.com': 0.65; 'default': 0.69; 'everywhere.': 0.84; 'reading,': 0.84; '2013,': 0.91; '2013': 0.98 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= nsdT/lEjSog8SjnJEPjitVFYY7Q=; b=AEAK9ppoBiaHj3W6BzNpIl5yonR/S7ix ixW4s5VcmjWg8p6ksnUZZOSAFE68a81QFCg8y4K6ucAsYBG9XUVrvesVhMwHnNys mbnEFd5sBbpzVqAJhiou4CsgeVm7V7Cft6o4jWNn6oZswyN4asRu12czjq4VpeIf YeNc+cRDOHs= 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=nsdT/lEjSog8SjnJEPjitVFYY7Q=; b=OTc izjX+3slNbgcTp7AaT/TS0TND91rk+PsPmFJqm4ohpuw/pZe2mJk3mIDrOtv05jY M9aGCMDfdeOhpZ8RnEdHT9YgpAM/UWNxDKdWu9W6sUWa2PExeC9PDJLtycgt21hn A3nFmdL2ZnzkSBxhC4YLYqVrQ6SZraHcJYbquVLk= X-Sasl-Enc: BMhPPSJkLSX8lltRVaIzu1N1bJ9f+LbA6gD4BerjuOas 1378751676 From: random832@fastmail.us To: Chris Angelico , python-list@python.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-15090c31 In-Reply-To: References: <4ce85ea8-4a4c-46cf-a546-ad999576a5f7@googlegroups.com> <1378486748.10472.18800565.3DE728D7@webmail.messagingengine.com> Subject: Re: Chardet, file, ... and the Flexible String Representation Date: Mon, 09 Sep 2013 14:34:36 -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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1378751679 news.xs4all.nl 15924 [2001:888:2000:d::a6]:53445 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:53883 On Fri, Sep 6, 2013, at 13:04, Chris Angelico wrote: > On Sat, Sep 7, 2013 at 2:59 AM, wrote: > > Incidentally, how does all this interact with ctypes unicode_buffers, > > which slice as strings and must be UTF-16 on windows? This was fine > > pre-FSR when unicode objects were UTF-16, but I'm not sure how it would > > work now. > > That would be pre-FSR *with a Narrow build*, which was the default on > Windows but not everywhere. But I don't know or use ctypes, so an > answer to your actual question will have to come from someone else. I did a couple tests - it works as well as can be expected for reading, but completely breaks for writing (due to sequence size checks not matching)