Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | _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 |