Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.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.043 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'subject:file': 0.07; 'windows': 0.15; '*with': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:String': 0.16; 'windows?': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'unicode': 0.24; 'fine': 0.24; 'question': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'ctypes': 0.31; 'sep': 0.31; 'actual': 0.34; 'subject:the': 0.34; 'objects': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'interact': 0.36; '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; 'default': 0.69; 'everywhere.': 0.84; '2013': 0.98 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:to :content-type; bh=fQuxRdjMHIO/Wez1uhXgGQizCHU8Ve/XnbW8KMJymdY=; b=ZzXluO8oKy2X0Lx6EWm+a1iUCSI5/AMcgd6KsQTfbOi0jUxHgQhrXyiF9yn9laSUuT j4Mc7XVs7/uTfFXFui3KaSgWnug+64Ukbj4SyFpopkcYHk/O95II1ATti/2GLxhndJ3Y gaJ8dHVPwUeVhLj2qpFcll4n+Uzk2MGQDIZgzB1oSGtuo9bBswakyZZjRB8uI6nFsBcY /aRvDVFlyGiTwAwKEEcZz21LVCGPVNAwBuFsQdnfKprZkpOIhO8tdaAFXX2vQjIemQMt o7fgDeH1aB3ex3WiAcJcRmRy3OWStbSKpfCYY7VSAur6ZvYSV4JYTzbz4a+y31yAPyuQ zimg== MIME-Version: 1.0 X-Received: by 10.52.107.134 with SMTP id hc6mr2643761vdb.10.1378487099106; Fri, 06 Sep 2013 10:04:59 -0700 (PDT) In-Reply-To: <1378486748.10472.18800565.3DE728D7@webmail.messagingengine.com> References: <4ce85ea8-4a4c-46cf-a546-ad999576a5f7@googlegroups.com> <1378486748.10472.18800565.3DE728D7@webmail.messagingengine.com> Date: Sat, 7 Sep 2013 03:04:59 +1000 Subject: Re: Chardet, file, ... and the Flexible String Representation From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1378487107 news.xs4all.nl 15897 [2001:888:2000:d::a6]:50346 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:53798 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. ChrisA