Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | zipimport: read_directory() uses cp437 or utf-8 (in strict mode), depending on | Victor Stinner | 2010-10-18 | 1 | -2/+9 |
| | | | | | the unicode flag, to decode the filename, instead of the filesystem encoding. Use the same choice than the zipfile module. | ||||
* | zipimport: get_module_code() returns modpath as a Unicode object | Victor Stinner | 2010-10-18 | 1 | -12/+23 |
| | | | | | ... instead of a char*. Encode the module path to the fileystem encoding (for PyImport_ExecCodeModuleEx) instead of utf-8. | ||||
* | zipimporter_load_module() doesn't destroy mod on error | Victor Stinner | 2010-10-18 | 1 | -9/+9 |
| | | | | | PyImport_AddModule() returns a borrowed reference. Don't display "import ... # loaded from Zip ..." on error. | ||||
* | zipimport: encode the prefix to the fileystem encoding | Victor Stinner | 2010-10-18 | 1 | -8/+15 |
| | |||||
* | zipimport, get_module_code(): avoid useless _PyUnicode_AsString() | Victor Stinner | 2010-10-18 | 1 | -3/+2 |
| | |||||
* | zipimport: fix indentation | Victor Stinner | 2010-10-18 | 1 | -4/+5 |
| | |||||
* | Remove more unneeded casts to hashfunc. | Georg Brandl | 2010-10-18 | 2 | -6/+6 |
| | |||||
* | Fix type of hash function. | Georg Brandl | 2010-10-18 | 1 | -1/+1 |
| | |||||
* | Fix compiler warning about unused static function. | Georg Brandl | 2010-10-18 | 1 | -1/+4 |
| | |||||
* | Fix compiler warnings about formatting pid_t as an int, by always casting to ↵ | Georg Brandl | 2010-10-18 | 1 | -1/+1 |
| | | | | long. | ||||
* | #678250: Make mmap flush a noop on ACCESS_READ and ACCESS_COPY. | R. David Murray | 2010-10-18 | 1 | -0/+4 |
| | | | | Patch by Sébastien Sablé. This solves a test_mmap failure on AIX. | ||||
* | fix strict aliasing warnings | Benjamin Peterson | 2010-10-17 | 1 | -2/+2 |
| | |||||
* | make hashes always the size of pointers; introduce Py_hash_t #9778 | Benjamin Peterson | 2010-10-17 | 2 | -8/+8 |
| | |||||
* | Fix T_BOOL bug of issue 8845. | Martin v. Löwis | 2010-10-17 | 1 | -1/+1 |
| | |||||
* | run_file(): encode the filename with PyUnicode_EncodeFSDefault() instead of | Victor Stinner | 2010-10-17 | 1 | -2/+2 |
| | | | | PyUnicode_AsUTF8String() | ||||
* | Fix compilation warning in _ctypes module on Window | Amaury Forgeot d'Arc | 2010-10-17 | 1 | -1/+1 |
| | |||||
* | Fix multiprocessing Semaphore's on netbsd5. SEM_VALUE_MAX is defined | Gregory P. Smith | 2010-10-17 | 1 | -2/+13 |
| | | | | | | | as (~0U) on NetBSD which was causing it to appear as -1 when used as a signed int for _multprocessing.SemLock.SEM_VALUE_MAX. This works around the problem by substituting INT_MAX on systems where it appears negative when used as an int. | ||||
* | _PyImport_FixupExtension() and _PyImport_FindExtension() uses FS encoding | Victor Stinner | 2010-10-17 | 1 | -1/+1 |
| | | | | | | | * Rename _PyImport_FindExtension() to _PyImport_FindExtensionUnicode(): the filename becomes a Unicode object instead of byte string * Rename _PyImport_FixupExtension() to _PyImport_FixupExtensionUnicode(): the filename becomes a Unicode object instead of byte string | ||||
* | applying netbsd-wizs-mod.patch from issue5510 - | Gregory P. Smith | 2010-10-17 | 1 | -2/+25 |
| | | | | fixes for netbsd (and dragonflybsd?) | ||||
* | Oops, fix my previous commit (r85583) on calculate_path() | Victor Stinner | 2010-10-16 | 1 | -4/+7 |
| | | | | path value may be changed, so keep a copy in a new variable. | ||||
* | calculate_path(): use _Py_char2wchar() to decode the PATH environment variable, | Victor Stinner | 2010-10-16 | 1 | -9/+4 |
| | | | | to support surrogate characters | ||||
* | Add an optional size argument to _Py_char2wchar() | Victor Stinner | 2010-10-16 | 2 | -3/+5 |
| | | | | | | _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. | ||||
* | Get rid of a "unused static function" warning. | Georg Brandl | 2010-10-16 | 1 | -0/+2 |
| | |||||
* | zipimport: catch _PyUnicode_AsString() failure in get_code_from_data() | Victor Stinner | 2010-10-16 | 1 | -0/+4 |
| | | | | It occurs if the path contains surrogates. | ||||
* | #9862: On AIX PIPE_BUF is broken. Make it 512. | R. David Murray | 2010-10-15 | 1 | -0/+4 |
| | | | | Patch by Sébastien Sablé. | ||||
* | #9054: fix crash when using pyexpat with a system expat lib version 2.0.1. | Georg Brandl | 2010-10-15 | 1 | -0/+3 |
| | |||||
* | #5355: Provide mappings from Expat error numbers to string descriptions and ↵ | Georg Brandl | 2010-10-15 | 1 | -5/+36 |
| | | | | backwards, in order to actually make it possible to analyze error codes provided by ExpatError. | ||||
* | Issue 9183: Intern UTC timezone. | Alexander Belopolsky | 2010-10-14 | 1 | -14/+31 |
| | |||||
* | Issue #7523: Add SOCK_CLOEXEC and SOCK_NONBLOCK to the socket module, | Antoine Pitrou | 2010-10-14 | 1 | -6/+33 |
| | | | | where supported by the system. Patch by Nikita Vetoshkin. | ||||
* | _Py_wgetcwd() decodes the path using _Py_char2wchar() to support surrogates | Victor Stinner | 2010-10-14 | 1 | -6/+6 |
| | |||||
* | Py_Main() uses _Py_wchar2char() to encode the filename in error messages | Victor Stinner | 2010-10-14 | 1 | -11/+11 |
| | |||||
* | #9418: first step of moving private string methods to _string module. | Georg Brandl | 2010-10-14 | 1 | -0/+4 |
| | |||||
* | Revert r85435 (and r85440): decode command line arguments from utf-8 | Victor Stinner | 2010-10-13 | 1 | -10/+1 |
| | | | | | | | Python exits with a fatal error if the command line contains an undecodable argument. PyUnicode_FromString() fails at the first undecodable byte because it calls the error handler, but error handlers are not ready before Python initialization. | ||||
* | Issue 9005: Removed dead code. | Alexander Belopolsky | 2010-10-13 | 1 | -22/+6 |
| | |||||
* | main(): catch PyUnicode_FromString() failure (exit) | Victor Stinner | 2010-10-13 | 1 | -0/+2 |
| | |||||
* | Issue #9992: On Mac OS X, decode command line arguments from utf-8 instead of | Victor Stinner | 2010-10-13 | 1 | -1/+9 |
| | | | | the locale encoding. | ||||
* | constify to appease compiler warnings | Benjamin Peterson | 2010-10-13 | 1 | -2/+2 |
| | |||||
* | Issue #9992: Remove PYTHONFSENCODING environment variable. | Victor Stinner | 2010-10-13 | 1 | -3/+0 |
| | |||||
* | Define a "session_id_context" at context creation. This is recommended | Antoine Pitrou | 2010-10-13 | 1 | -0/+5 |
| | | | | for the OpenSSL server-side session cache. | ||||
* | Fix compile on NetBSD 5.0 (or anything else using an old 0.9.9-dev OpenSSL). | Gregory P. Smith | 2010-10-13 | 1 | -2/+4 |
| | |||||
* | fix compliation on NetBSD | Gregory P. Smith | 2010-10-13 | 1 | -1/+1 |
| | |||||
* | Issue #3873: Speed up unpickling from file objects which have a peek() | Antoine Pitrou | 2010-10-12 | 1 | -24/+93 |
| | | | | method. | ||||
* | Issue #10075: Add a session_stats() method to SSLContext objects. | Antoine Pitrou | 2010-10-12 | 1 | -0/+41 |
| | |||||
* | Upgrade to Unicode 6.0.0. | Martin v. Löwis | 2010-10-11 | 2 | -18656/+20399 |
| | | | | | | | | makeunicodedata.py: download all data files from unicode.org, switch to extracting Unihan data from zip file. Read linebreakprops and derivednormalizationprops even for old versions, even though they are not used in delta records. test:unicode.py: U+11000 is now assigned, use U+14000 instead. | ||||
* | Issue #10055: Make json C89-compliant in UCS4 mode. | Antoine Pitrou | 2010-10-09 | 1 | -1/+1 |
| | |||||
* | copy_absolute() keeps the relative path on _Py_wgetcwd() failure | Victor Stinner | 2010-10-07 | 1 | -2/+5 |
| | | | | | .. instead of raising a fatal error. Even if the current directory was deleted, use relative paths may still work (eg. run Python with "../python"). | ||||
* | copy_absolute() raises a fatal error on _Py_wgetcwd() failure | Victor Stinner | 2010-10-07 | 1 | -1/+2 |
| | |||||
* | Create fileutils.c/.h | Victor Stinner | 2010-10-07 | 2 | -285/+4 |
| | | | | | | | * _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 | ||||
* | _wrealpath() and _Py_wreadlink() support surrogates (PEP 383) | Victor Stinner | 2010-10-07 | 1 | -3/+6 |
| | | | | Use _Py_wchar2char() to support surrogate characters in the input path. | ||||
* | PyUnicode_AsWideCharString() takes a PyObject*, not a PyUnicodeObject* | Victor Stinner | 2010-10-07 | 5 | -6/+6 |
| | | | | | All unicode functions uses PyObject* except PyUnicode_AsWideChar(). Fix the prototype for the new function PyUnicode_AsWideCharString(). |