A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-April/072611.html below:

[Python-Dev] fdopen mode needs sanitizing

[Python-Dev] fdopen mode needs sanitizing [Python-Dev] fdopen mode needs sanitizingKristján Valur Jónsson kristjan at ccpgames.com
Sat Apr 14 18:29:50 CEST 2007
In fileobject the mode string is sanitized using  a function, sanitize_the_mode().
The same thing needs to happen for posixmodule.fdopen().  Otherwise, the universal_newlines regression test in test_subprocess.py will fail for python compiled with Visual Studio 2005.
I have made a local patch by copying this static function over, and it fixes the issue, but I wonder if we would want to share this code?  Also, are there other places that spring to mind where we have to sanitize mode strings before handing them to fopen-like functions?

Kristján
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-dev/attachments/20070414/ac246b81/attachment.html 
More information about the Python-Dev mailing list

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