| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
* handle _PyMem_RawStrdup() failure
* Py_FrozenMain() releases memory on error
* Py_FrozenMain() duplicates the old locale, as done in main()
|
|
|
|
| |
Modules/python.c:40: warning: ISO C90 forbids mixed declarations and code
|
|\ |
|
| |
| |
| |
| | |
Patch by Andrew Rowe.
|
| |\
| | |
| | |
| | |
| | |
| | |
| | | |
encoded/decoded to/from 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.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
encoded/decoded to/from 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.
|
| | |
| | |
| | |
| | |
| | | |
Replace strdup() with _PyMem_RawStrdup() or _PyMem_Strdup(), depending if the
GIL is held or not.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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()
|
|/ /
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
|
|
| |
free the copy of the command-line.
Found using Clang's static analyzer.
|
|
|
|
| |
in sys_update_path().
|
|
|
|
| |
cannot be decoded
|
|
|
|
|
|
|
| |
the locale encoding. If the LANG (and LC_ALL and LC_CTYPE) environment variable
is not set, the locale encoding is ISO-8859-1, whereas most programs (including
Python) expect UTF-8. Python already uses UTF-8 for the filesystem encoding and
to encode command line arguments on this OS.
|
|
|
|
|
|
| |
_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.
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
the locale encoding.
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines
Untabify C files. Will watch buildbots.
........
|
|
|
|
|
|
|
| |
This fixes issue #8441: python.c is not included
in the framework while main.c is and without this
patch you get a link error when building
Python.framework on OSX.
|
| |
|
| |
|
|
|
|
| |
of the command line.
|
| |
|
|
|
|
| |
System Character Interfaces.
|
|
|
|
| |
setlocale() because it could be overwritten by subsequent setlocale()s.
|
| |
|
|
|
|
| |
Patch by Victor.
|
|
|
|
| |
Patch by Amaury Forgeot d'Arc, reviewed by me.
|
|
|
|
| |
Fixes #2128.
|
|
|
|
|
|
|
| |
This can cause core dumps when Python runs. Python relies on the 754-
(and C99-) mandated default "non-stop" mode for FP exceptions. This
patch from Ben Laurie disables at least one FP exception on FreeBSD at
Python startup time.
|
|
|
|
|
|
| |
for Py_Main().
Thanks to Kalle Svensson and Skip Montanaro for the patches.
|
|
|
|
| |
possible.
|
|
|
|
| |
(patch #100805 by Peter Schneider-Kamp)
|
| |
|
| |
|
| |
|
|
which is in the library and does all the work.
|