Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.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.033 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'prints': 0.07; 'subject:issue': 0.07; 'python': 0.08; 'output': 0.10; 'capturing': 0.16; 'hex': 0.16; 'latter,': 0.16; 'cc:addr:python- list': 0.16; 'wrote:': 0.18; '3.2': 0.18; 'trying': 0.21; 'header :In-Reply-To:1': 0.22; 'cc:2**0': 0.26; 'noticed': 0.26; 'tried': 0.27; 'cc:addr:python.org': 0.29; 'pm,': 0.29; 'header:User- Agent:1': 0.33; 'calling': 0.34; 'hello,': 0.37; 'received:192': 0.38; 'space,': 0.38; 'could': 0.38; 'some': 0.38; 'characters': 0.39; 'application': 0.40; 'our': 0.63; 'further': 0.64; 'header :Reply-To:1': 0.70; 'reply-to:no real name:2**0': 0.72; 'ideas,': 0.73; 'spaces': 0.73; 'why?': 0.77 Date: Tue, 28 Feb 2012 14:32:16 -0500 From: Dave Angel User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.27) Gecko/20120216 Thunderbird/3.1.19 MIME-Version: 1.0 To: Ben Held Subject: Re: wcout issue References: <490969328934674185BE9272698B1CBD1A8A4E04@ex2a.awr.local> In-Reply-To: <490969328934674185BE9272698B1CBD1A8A4E04@ex2a.awr.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:59WREPJAxoTtI5w/YJ9e/6RaVKPlZFa5Z2BGHEUOgDB kPfUrusuI71j6hIXtra8DxJOcJqbdp4vJGkX9JP3F8dMMrMc6A 9dWeMlc2+C7waWdxUZdOOtH3Prs7CO4RcZZ+kLTIsNG43qtVqy rO5YnGQ8Oz7SuH2KXmqfqqadXgHWNW4rOhTVHpme5PLkOJPum5 6oHqzQYPXpLCWp0z5JHXjC4wBzEcfjUwiiT3vI9nNXDOIX9Pcc MNlVKKr1R3c9rkMSgPpWwCmnE1W0+0KOLarlR4/cXs+Z6BgTAE 4dF9IGVUql5MsK9ofF9GhSqpKZxmgDcw/z9I/baoEnYkMv24A= = Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: d@davea.name 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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1330457550 news.xs4all.nl 6951 [2001:888:2000:d::a6]:36588 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:21001 On 02/27/2012 10:26 PM, Ben Held wrote: > Hello, > > After upgrading from Python 2.6 to 3.2 in our application we noticed that after calling Py_Initialize, our output from std::wcout has extra spaces in it: > > wcout<< L"Just a test\n"; > > now prints out: > > J u s t a t e s t > > Any clue why? > > > Ben Held > > Have you tried capturing this output, and looking at it with a hex viewer? Are the characters really space, or could they be nulls? If the latter, perhaps it's outputting ucs2 for Unicode. (I have no further ideas, just trying to provoke some experimentation) -- DaveA