Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't export internal symbols ("make smelly") | Antoine Pitrou | 2013-10-12 | 1 | -1/+1 |
| | |||||
* | Close #18954: Fix some typo in fileutils.c comments | Victor Stinner | 2013-09-07 | 1 | -3/+3 |
| | | | | Patch written by Vajrasky Kok. | ||||
* | Issue #18571: Implementation of the PEP 446: file descriptors and file handles | Victor Stinner | 2013-08-27 | 1 | -13/+328 |
| | | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable(). | ||||
* | Issue #18203: Fix decode_ascii_surrogateescape(), use PyMem_RawMalloc() as ↵ | Victor Stinner | 2013-07-07 | 1 | -1/+1 |
| | | | | _Py_char2wchar() | ||||
* | Issue #18203: Replace malloc() with PyMem_RawMalloc() at Python initialization | Victor Stinner | 2013-07-07 | 1 | -11/+11 |
| | | | | | | | * Replace malloc() with PyMem_RawMalloc() * Replace PyMem_Malloc() with PyMem_RawMalloc() where the GIL is not held. * _Py_char2wchar() now returns a buffer allocated by PyMem_RawMalloc(), instead of PyMem_Malloc() | ||||
* | If MS_WIN64 is defined, MS_WINDOWS is also defined: #ifdef can be simplified. | Victor Stinner | 2013-06-24 | 1 | -2/+2 |
| | |||||
* | Issue #9566: Fix compiler warning on Windows 64-bit | Victor Stinner | 2013-06-04 | 1 | -1/+2 |
| | |||||
* | Fix a compiler warning: in and out are unused in _Py_char2wchar() if | Victor Stinner | 2013-05-07 | 1 | -1/+1 |
| | | | | HAVE_MBRTOWC is not defined | ||||
* | thinko | Philip Jenvey | 2013-01-15 | 1 | -1/+1 |
| | |||||
* | Issue #16455: On FreeBSD and Solaris, if the locale is C, the | Victor Stinner | 2012-12-04 | 1 | -23/+217 |
| | | | | | | | ASCII/surrogateescape codec is now used, instead of the locale encoding, to decode the command line arguments. This change fixes inconsistencies with os.fsencode() and os.fsdecode() because these operating systems announces an ASCII locale encoding, whereas the ISO-8859-1 encoding is used in practice. | ||||
* | Issue #16416: Fix error handling in _Py_wchar2char() _Py_char2wchar() functions | Victor Stinner | 2012-11-12 | 1 | -11/+16 |
| | |||||
* | Issue #16416: OS data are now always encoded/decoded to/from | Victor Stinner | 2012-11-12 | 1 | -2/+45 |
| | | | | | | | UTF-8/surrogateescape, instead of the locale encoding (which may be ASCII if no locale environment variable is set), to avoid inconsistencies with os.fsencode() and os.fsdecode() functions which are already using UTF-8/surrogateescape. | ||||
* | Merge 3.3. | Stefan Krah | 2012-11-12 | 1 | -0/+1 |
|\ | |||||
| * | Issue #15835: Define PATH_MAX on HP-UX. | Stefan Krah | 2012-11-12 | 1 | -0/+1 |
| | | |||||
* | | Issue #16330: Use surrogate-related macros | Victor Stinner | 2012-10-30 | 1 | -2/+2 |
|/ | | | | Patch written by Serhiy Storchaka. | ||||
* | Issue #14153 Create _Py_device_encoding() to prevent _io from having to import | Brett Cannon | 2012-02-29 | 1 | -0/+34 |
| | | | | the os module. | ||||
* | Issue #13626: Add support for SSL Diffie-Hellman key exchange, through the | Antoine Pitrou | 2011-12-22 | 1 | -0/+6 |
| | | | | SSLContext.load_dh_params() method and the ssl.OP_SINGLE_DH_USE option. | ||||
* | _Py_fopen now allows bytes filenames under non-Windows platforms. | Antoine Pitrou | 2011-12-19 | 1 | -2/+2 |
| | |||||
* | import.c now catchs _Py_stat() exceptions | Victor Stinner | 2011-12-18 | 1 | -4/+4 |
| | | | | _Py_stat() now returns -2 if an exception was raised. | ||||
* | Add PyUnicode_DecodeLocaleAndSize() and PyUnicode_DecodeLocale() | Victor Stinner | 2011-12-16 | 1 | -9/+16 |
| | | | | | | | | | | | * PyUnicode_DecodeLocaleAndSize() and PyUnicode_DecodeLocale() decode a string from the current locale encoding * _Py_char2wchar() writes an "error code" in the size argument to indicate if the function failed because of memory allocation failure or because of a decoding error. The function doesn't write the error message directly to stderr. * Fix time.strftime() (if wcsftime() is missing): decode strftime() result from the current locale encoding, not from the filesystem encoding. | ||||
* | Catch PyUnicode_AS_UNICODE() errors in fileutils.c | Victor Stinner | 2011-11-16 | 1 | -2/+11 |
| | |||||
* | _Py_char2wchar() frees the memory on conversion error | Victor Stinner | 2010-11-08 | 1 | -2/+7 |
| | | | | Explain in the documentation that conversion errors should never happen. | ||||
* | PyUnicode_EncodeFS() raises an exception if _Py_wchar2char() fails | Victor Stinner | 2010-11-08 | 1 | -6/+14 |
| | | | | | | * Add error_pos optional argument to _Py_wchar2char() * PyUnicode_EncodeFS() raises a UnicodeEncodeError or MemoryError if _Py_wchar2char() fails | ||||
* | Add an optional size argument to _Py_char2wchar() | Victor Stinner | 2010-10-16 | 1 | -11/+16 |
| | | | | | | _Py_char2wchar() callers usually need the result size in characters. Since it's trivial to compute it in _Py_char2wchar() (O(1) whereas wcslen() is O(n)), add an option to get it. | ||||
* | _Py_wrealpath() uses _Py_char2wchar() to decode the result, to support | Victor Stinner | 2010-10-16 | 1 | -2/+12 |
| | | | | surrogate characters. | ||||
* | _Py_wreadlink(): catch _Py_char2wchar() failure | Victor Stinner | 2010-10-16 | 1 | -0/+4 |
| | |||||
* | _Py_wreadlink() uses _Py_char2wchar() to decode the result, to support | Victor Stinner | 2010-10-16 | 1 | -2/+7 |
| | | | | surrogate characters. | ||||
* | Mark _Py_char2wchar() input argument as constant | Victor Stinner | 2010-10-15 | 1 | -1/+1 |
| | |||||
* | _Py_wgetcwd() decodes the path using _Py_char2wchar() to support surrogates | Victor Stinner | 2010-10-14 | 1 | -3/+11 |
| | |||||
* | fileutils.c: document which encodings are used | Victor Stinner | 2010-10-07 | 1 | -6/+26 |
| | |||||
* | _Py_wrealpath() requires the size of the output buffer | Victor Stinner | 2010-10-07 | 1 | -2/+3 |
| | |||||
* | _Py_stat() and _Py_fopen(): avoid PyUnicode_AsWideCharString() on Windows | Victor Stinner | 2010-10-07 | 1 | -18/+6 |
| | | | | | On Windows, Py_UNICODE is wchar_t, so we can avoid the expensive Py_UNICODE* => wchar_t* conversion. | ||||
* | Fix fileutils for Windows | Victor Stinner | 2010-10-07 | 1 | -8/+7 |
| | | | | | | * Don't define _Py_wstat() on Windows, Windows has its own _wstat() function with a different API (the stat buffer has another type) * Include windows.h | ||||
* | Ooops, fileutils.c contains twice the same code | Victor Stinner | 2010-10-07 | 1 | -380/+0 |
| | | | | | I suppose that I reapplied my local patch creating Python/fileutils.c whereas the file already existed. | ||||
* | Create fileutils.c/.h | Victor Stinner | 2010-10-07 | 1 | -0/+758 |
* _Py_fopen() and _Py_stat() come from Python/import.c * (_Py)_wrealpath() comes from Python/sysmodule.c * _Py_char2wchar(), _Py_wchar2char() and _Py_wfopen() come from Modules/main.c * (_Py)_wstat(), (_Py)_wgetcwd(), _Py_wreadlink() come from Modules/getpath.c |