Showing content from http://mail.python.org/pipermail/python-dev/attachments/20131011/7289f41e/attachment.html below:
<p dir="ltr"><br>
On 11 Oct 2013 01:22, "Bastien Montagne" <<a href="mailto:montagne29@wanadoo.fr">montagne29@wanadoo.fr</a>> wrote:<br>
><br>
> Hi Py Devs,<br>
><br>
> As this is my first mail here, first a short presentation: my name is Bastien Montagne (aka mont29), I live in France, and Ive been using Python for a fair amount of years now in various projects, amongst which Blender 3D software. Im also a Blender dev (C & Py) since a few years.<br>
><br>
> Now to the topic, to summarize <a href="http://bugs.python.org/issue16129">http://bugs.python.org/issue16129</a> , an application dynamically linking against Python under MS-Windows has no way to control Python's environment, and hence cannot set PYTHONIOENCODING to get another encoding than default Windows' console (which is usually 8bit, like cp437). This is really annoying under Blender, as we use utf-8 strings, users having e.g. "special" chars in their file paths keep getting python errors instead of nice prints
<br>
><br>
> Following Nick Coghlans suggestions, I made a patch which solves that issue by adding Py_SetStandardStreamEncoding() to the API, which allows embedding code to directly specify standard IO encodings. So now Im waiting for reviews & comments from py devs, in the hope that this can make it into python code before 3.4 feature freeze (patch: <a href="http://bugs.python.org/file31985/setstdio.diff">http://bugs.python.org/file31985/setstdio.diff</a> ).</p>
<p dir="ltr">Sorry for the radio silence - this is on my list to look at before alpha 4. (The main thing ahead of it on the to do list was the PEP 453 update to limit the functional changes to 3.4 only, which is now with Donald for review before we submit it for pronouncement).</p>
<p dir="ltr">However, if someone else wanted to tackle Bastien's patch before I get to it, I certainly wouldn't complain :)</p>
<p dir="ltr">Cheers,<br>
Nick.</p>
<p dir="ltr">><br>
> Best regards,<br>
> Bastien<br>
> _______________________________________________<br>
> Python-Dev mailing list<br>
> <a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a><br>
> Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com">https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com</a><br>
</p>
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4