]> granicus.if.org Git - python/log
python
13 years agoIssue #1040439: better document how to compile and link an embedded Python interpreter.
Antoine Pitrou [Wed, 30 Nov 2011 20:20:01 +0000 (21:20 +0100)]
Issue #1040439: better document how to compile and link an embedded Python interpreter.
Still lacks docs for Windows (anyone?).

13 years agoIssue #1040439: better document how to compile and link an embedded Python interpreter.
Antoine Pitrou [Wed, 30 Nov 2011 20:19:21 +0000 (21:19 +0100)]
Issue #1040439: better document how to compile and link an embedded Python interpreter.
Still lacks docs for Windows (anyone?).

13 years agoMake error handling in BZ2File.{readable,seekable,writable,fileno} consistent with...
Nadeem Vawda [Wed, 30 Nov 2011 15:39:30 +0000 (17:39 +0200)]
Make error handling in BZ2File.{readable,seekable,writable,fileno} consistent with TextIOWrapper.

Also, add tests for these methods.

13 years agoIssue #6715: Add module for compression using the LZMA algorithm.
Nadeem Vawda [Tue, 29 Nov 2011 22:25:06 +0000 (00:25 +0200)]
Issue #6715: Add module for compression using the LZMA algorithm.

13 years agoPy_UNICODE_HIGH_SURROGATE() and Py_UNICODE_LOW_SURROGATE() macros
Victor Stinner [Tue, 29 Nov 2011 21:58:13 +0000 (22:58 +0100)]
Py_UNICODE_HIGH_SURROGATE() and Py_UNICODE_LOW_SURROGATE() macros

And use surrogates macros everywhere in unicodeobject.c

13 years agoMention hashable memoryviews, and reformat.
Antoine Pitrou [Tue, 29 Nov 2011 21:47:11 +0000 (22:47 +0100)]
Mention hashable memoryviews, and reformat.

13 years agoAdd subheaders to make PEP 393 description clearer
Antoine Pitrou [Tue, 29 Nov 2011 21:45:07 +0000 (22:45 +0100)]
Add subheaders to make PEP 393 description clearer

13 years agoMerge 3.2
Éric Araujo [Tue, 29 Nov 2011 16:14:27 +0000 (17:14 +0100)]
Merge 3.2

13 years agoFix inspect.getmodule to use a copy of sys.modules for iteration (#13487).
Éric Araujo [Tue, 29 Nov 2011 15:58:53 +0000 (16:58 +0100)]
Fix inspect.getmodule to use a copy of sys.modules for iteration (#13487).

This fixes a regression compared to 2.x, where sys.modules.items()
returns a copy, as indicated by a comment in the source.  Diagnosis and
patch by Erik Tollerud.

13 years agoMark up constants in sockets docs as such
Éric Araujo [Tue, 29 Nov 2011 15:46:38 +0000 (16:46 +0100)]
Mark up constants in sockets docs as such

13 years agoFix instructions on how to rebuild some modules
Éric Araujo [Tue, 29 Nov 2011 15:45:34 +0000 (16:45 +0100)]
Fix instructions on how to rebuild some modules

13 years agoAdd a regrtest cleanup check for shutil registries
Éric Araujo [Tue, 29 Nov 2011 15:45:07 +0000 (16:45 +0100)]
Add a regrtest cleanup check for shutil registries

13 years agoFix last remaining references to ex-devguide
Éric Araujo [Tue, 29 Nov 2011 15:36:17 +0000 (16:36 +0100)]
Fix last remaining references to ex-devguide

13 years agoFix typo (#13467)
Éric Araujo [Tue, 29 Nov 2011 15:34:58 +0000 (16:34 +0100)]
Fix typo (#13467)

13 years agocleanup setup.py for curses options
Victor Stinner [Mon, 28 Nov 2011 23:08:12 +0000 (00:08 +0100)]
cleanup setup.py for curses options

13 years ago(Merge 3.2) Fix curses module for strict SysV implementation (without has_key function)
Victor Stinner [Mon, 28 Nov 2011 23:06:10 +0000 (00:06 +0100)]
(Merge 3.2) Fix curses module for strict SysV implementation (without has_key function)

13 years agoFix curses module for strict SysV implementation (without has_key function)
Victor Stinner [Mon, 28 Nov 2011 23:03:50 +0000 (00:03 +0100)]
Fix curses module for strict SysV implementation (without has_key function)

13 years agoMerge test_xmlrpc_net fixes (issue #13434)
Antoine Pitrou [Mon, 28 Nov 2011 20:15:22 +0000 (21:15 +0100)]
Merge test_xmlrpc_net fixes (issue #13434)

13 years agoFix resource warning in test_xmlrpc_net
Antoine Pitrou [Mon, 28 Nov 2011 20:14:46 +0000 (21:14 +0100)]
Fix resource warning in test_xmlrpc_net

13 years agoIssue #13434: skip the time.xmlrpc.com test, and reenable the buildbot test.
Antoine Pitrou [Mon, 28 Nov 2011 20:12:24 +0000 (21:12 +0100)]
Issue #13434: skip the time.xmlrpc.com test, and reenable the buildbot test.

13 years agoIssue #7111: Python can now be run without a stdin, stdout or stderr stream.
Antoine Pitrou [Mon, 28 Nov 2011 18:09:45 +0000 (19:09 +0100)]
Issue #7111: Python can now be run without a stdin, stdout or stderr stream.

It was already the case with Python 2.  However, the corresponding
sys module entries are now set to None (instead of an unusable file object).

13 years agoIssue #7111: Python can now be run without a stdin, stdout or stderr stream.
Antoine Pitrou [Mon, 28 Nov 2011 18:08:36 +0000 (19:08 +0100)]
Issue #7111: Python can now be run without a stdin, stdout or stderr stream.

It was already the case with Python 2.  However, the corresponding
sys module entries are now set to None (instead of an unusable file object).

13 years agoIssue #12618: py_compile cannot create files in current directory
Meador Inge [Mon, 28 Nov 2011 15:34:47 +0000 (09:34 -0600)]
Issue #12618: py_compile cannot create files in current directory

Initial patch by Sjoerd de Vries.

13 years agoIssue #12618: py_compile cannot create files in current directory
Meador Inge [Mon, 28 Nov 2011 15:27:32 +0000 (09:27 -0600)]
Issue #12618: py_compile cannot create files in current directory

Initial patch by Sjoerd de Vries.

13 years agoIssue #13415: test_curses skips unencodable characters
Victor Stinner [Mon, 28 Nov 2011 06:26:19 +0000 (07:26 +0100)]
Issue #13415: test_curses skips unencodable characters

13 years agoNull merge.
Charles-François Natali [Sun, 27 Nov 2011 11:50:15 +0000 (12:50 +0100)]
Null merge.

13 years agoIssue #13415: Skip test_os.test_unset_error on FreeBSD and OS X.
Charles-François Natali [Sun, 27 Nov 2011 11:49:27 +0000 (12:49 +0100)]
Issue #13415: Skip test_os.test_unset_error on FreeBSD and OS X.

13 years agoNull merge.
Charles-François Natali [Sun, 27 Nov 2011 11:42:30 +0000 (12:42 +0100)]
Null merge.

13 years agoIssue #13415: Test in configure if unsetenv() has a return value or not.
Charles-François Natali [Sun, 27 Nov 2011 11:41:06 +0000 (12:41 +0100)]
Issue #13415: Test in configure if unsetenv() has a return value or not.

13 years agoMERGE: Closes issue #13488: Some old preprocessors have problem with #define not...
Jesus Cea [Sun, 27 Nov 2011 04:17:14 +0000 (05:17 +0100)]
MERGE: Closes issue #13488: Some old preprocessors have problem with #define not in the first column

13 years agoCloses issue #13488: Some old preprocessors have problem with #define not in the...
Jesus Cea [Sun, 27 Nov 2011 04:16:22 +0000 (05:16 +0100)]
Closes issue #13488: Some old preprocessors have problem with #define not in the first column

13 years agoIssue #13415: Help to locate curses.h when _curses module is linked to ncursesw
Victor Stinner [Sat, 26 Nov 2011 23:19:53 +0000 (00:19 +0100)]
Issue #13415: Help to locate curses.h when _curses module is linked to ncursesw

13 years agoIssue #13444: When stdout has been closed explicitly, we should not attempt to flush...
Antoine Pitrou [Sat, 26 Nov 2011 21:02:29 +0000 (22:02 +0100)]
Issue #13444: When stdout has been closed explicitly, we should not attempt to flush it at shutdown and print an error.

This also adds a test for issue #5319, whose resolution introduced the issue.

13 years agoIssue #13444: When stdout has been closed explicitly, we should not attempt to flush...
Antoine Pitrou [Sat, 26 Nov 2011 20:59:36 +0000 (21:59 +0100)]
Issue #13444: When stdout has been closed explicitly, we should not attempt to flush it at shutdown and print an error.

This also adds a test for issue #5319, whose resolution introduced the issue.

13 years agoIssue #12618: fix py_compile unit tests to handle different drives on Windows
Meador Inge [Sat, 26 Nov 2011 17:39:49 +0000 (11:39 -0600)]
Issue #12618: fix py_compile unit tests to handle different drives on Windows

13 years agoIssue #12618: fix py_compile unit tests to handle different drives on Windows
Meador Inge [Sat, 26 Nov 2011 17:37:02 +0000 (11:37 -0600)]
Issue #12618: fix py_compile unit tests to handle different drives on Windows

13 years agosched.py: fix test_queue by making sure that queue property returns an orderd list...
Giampaolo Rodola' [Sat, 26 Nov 2011 11:17:42 +0000 (12:17 +0100)]
sched.py: fix test_queue by making sure that queue property returns an orderd list of upcoming events

13 years agoIssue #13415: Skip test_os.test_unset_error on FreeBSD < 7 and OS X < 10.6
Charles-François Natali [Sat, 26 Nov 2011 10:32:46 +0000 (11:32 +0100)]
Issue #13415: Skip test_os.test_unset_error on FreeBSD < 7 and OS X < 10.6
(where unsetenv() doesn't return a value).

13 years agoIssue #12618: create unit tests for the py_compile module
Meador Inge [Sat, 26 Nov 2011 05:40:53 +0000 (23:40 -0600)]
Issue #12618: create unit tests for the py_compile module

13 years agoIssue #12618: create unit tests for the py_compile module
Meador Inge [Sat, 26 Nov 2011 05:36:48 +0000 (23:36 -0600)]
Issue #12618: create unit tests for the py_compile module

13 years agoIssue #13380: add an internal function for resetting the ctypes caches
Meador Inge [Sat, 26 Nov 2011 04:37:44 +0000 (22:37 -0600)]
Issue #13380: add an internal function for resetting the ctypes caches

13 years agoIssue #13380: add an internal function for resetting the ctypes caches
Meador Inge [Sat, 26 Nov 2011 04:33:32 +0000 (22:33 -0600)]
Issue #13380: add an internal function for resetting the ctypes caches

13 years agoSome libcs' snprintf may output a leading minus sign when %p-formatting
Antoine Pitrou [Sat, 26 Nov 2011 00:42:03 +0000 (01:42 +0100)]
Some libcs' snprintf may output a leading minus sign when %p-formatting
(should fix a failure on the OpenIndiana AMD64 buildbot)

13 years agoMerge heads
Antoine Pitrou [Sat, 26 Nov 2011 00:13:12 +0000 (01:13 +0100)]
Merge heads

13 years agoBetter resolution for issue #11849: Ensure that free()d memory arenas are really...
Antoine Pitrou [Sat, 26 Nov 2011 00:11:02 +0000 (01:11 +0100)]
Better resolution for issue #11849: Ensure that free()d memory arenas are really released
on POSIX systems supporting anonymous memory mappings.  Patch by Charles-François Natali.

13 years agoIssue #12567: The curses module uses Unicode functions for Unicode arguments
Victor Stinner [Fri, 25 Nov 2011 21:10:02 +0000 (22:10 +0100)]
Issue #12567: The curses module uses Unicode functions for Unicode arguments
when it is linked to the ncurses library. It encodes also Unicode strings to
the locale encoding instead of UTF-8.

13 years agoIssue #12856: Ensure child processes do not inherit the parent's random seed for...
Antoine Pitrou [Fri, 25 Nov 2011 20:29:27 +0000 (21:29 +0100)]
Issue #12856: Ensure child processes do not inherit the parent's random seed for filename generation in the tempfile module.
Patch by Brian Harring.

13 years agoIssue #12856: Ensure child processes do not inherit the parent's random seed for...
Antoine Pitrou [Fri, 25 Nov 2011 20:28:15 +0000 (21:28 +0100)]
Issue #12856: Ensure child processes do not inherit the parent's random seed for filename generation in the tempfile module.
Patch by Brian Harring.

13 years agoNEWS: fix the issue number for PyUnicode_EncodeDecimal change
Victor Stinner [Fri, 25 Nov 2011 19:11:54 +0000 (20:11 +0100)]
NEWS: fix the issue number for PyUnicode_EncodeDecimal change

13 years agoClose #13093: PyUnicode_EncodeDecimal() doesn't support error handlers
Victor Stinner [Fri, 25 Nov 2011 19:09:01 +0000 (20:09 +0100)]
Close #13093: PyUnicode_EncodeDecimal() doesn't support error handlers
different than "strict" anymore. The caller was unable to compute the
size of the output buffer: it depends on the error handler.

13 years agoTypo
Antoine Pitrou [Fri, 25 Nov 2011 18:11:26 +0000 (19:11 +0100)]
Typo

13 years agoUpdate What's new for PEP 3155
Antoine Pitrou [Fri, 25 Nov 2011 18:10:05 +0000 (19:10 +0100)]
Update What's new for PEP 3155

13 years agoPEP 3155 / issue #13448: Qualified name for classes and functions.
Antoine Pitrou [Fri, 25 Nov 2011 17:56:07 +0000 (18:56 +0100)]
PEP 3155 / issue #13448: Qualified name for classes and functions.

13 years agoIssue #9957: SpooledTemporaryFile.truncate() now accepts an optional size parameter...
Antoine Pitrou [Fri, 25 Nov 2011 17:03:09 +0000 (18:03 +0100)]
Issue #9957: SpooledTemporaryFile.truncate() now accepts an optional size parameter, as other file-like objects.
Patch by Ryan Kelly.

13 years agoClarify concatenation behaviour of immutable strings, and remove explicit
Antoine Pitrou [Fri, 25 Nov 2011 15:34:23 +0000 (16:34 +0100)]
Clarify concatenation behaviour of immutable strings, and remove explicit
mention of the CPython optimization hack.

13 years agoClarify concatenation behaviour of immutable strings, and remove explicit
Antoine Pitrou [Fri, 25 Nov 2011 15:33:53 +0000 (16:33 +0100)]
Clarify concatenation behaviour of immutable strings, and remove explicit
mention of the CPython optimization hack.

13 years agofix some typos in Doc/c-api/memoryview.rst
Eli Bendersky [Fri, 25 Nov 2011 13:08:45 +0000 (15:08 +0200)]
fix some typos in Doc/c-api/memoryview.rst

13 years agofix some typos in Doc/c-api/memoryview.rst
Eli Bendersky [Fri, 25 Nov 2011 13:07:50 +0000 (15:07 +0200)]
fix some typos in Doc/c-api/memoryview.rst

13 years agoAdd a "What's New" entry for #12170
Petri Lehtinen [Thu, 24 Nov 2011 20:00:46 +0000 (22:00 +0200)]
Add a "What's New" entry for #12170

13 years agomerge from 3.2 testFnNames is assigned twice.
Senthil Kumaran [Thu, 24 Nov 2011 18:09:24 +0000 (02:09 +0800)]
merge from 3.2 testFnNames is assigned twice.

13 years agotestFnNames is assigned twice.
Senthil Kumaran [Thu, 24 Nov 2011 18:08:39 +0000 (02:08 +0800)]
testFnNames is assigned twice.

13 years agoClose #13415: Test in configure if unsetenv() has a return value or not.
Victor Stinner [Thu, 24 Nov 2011 12:53:38 +0000 (13:53 +0100)]
Close #13415: Test in configure if unsetenv() has a return value or not.

Patch written by Charles-François Natali.

13 years agoand back to the "magic" formula (with a comment) it is
Benjamin Peterson [Wed, 23 Nov 2011 16:44:52 +0000 (10:44 -0600)]
and back to the "magic" formula (with a comment) it is

13 years agoMerged documentation addition from 3.2.
Vinay Sajip [Wed, 23 Nov 2011 14:29:01 +0000 (14:29 +0000)]
Merged documentation addition from 3.2.

13 years agoAdded a configuration dictionary example to the logging cookbook.
Vinay Sajip [Wed, 23 Nov 2011 14:27:54 +0000 (14:27 +0000)]
Added a configuration dictionary example to the logging cookbook.

13 years agoCloses #13459: Merged fix from 3.2.
Vinay Sajip [Wed, 23 Nov 2011 08:55:59 +0000 (08:55 +0000)]
Closes #13459: Merged fix from 3.2.

13 years agoCloses #13459: Clarified documentation on Logger.propagate. Thanks to Mike Fogel...
Vinay Sajip [Wed, 23 Nov 2011 08:54:22 +0000 (08:54 +0000)]
Closes #13459: Clarified documentation on Logger.propagate. Thanks to Mike Fogel for the patch.

13 years agomerge 3.2 (null)
Benjamin Peterson [Wed, 23 Nov 2011 05:57:50 +0000 (23:57 -0600)]
merge 3.2 (null)

13 years agodecref correct object
Benjamin Peterson [Wed, 23 Nov 2011 05:57:23 +0000 (23:57 -0600)]
decref correct object

13 years agomerge 3.2
Benjamin Peterson [Wed, 23 Nov 2011 05:14:47 +0000 (23:14 -0600)]
merge 3.2

13 years agoplug refleak
Benjamin Peterson [Wed, 23 Nov 2011 05:12:49 +0000 (23:12 -0600)]
plug refleak

13 years agomerge heads
Benjamin Peterson [Wed, 23 Nov 2011 01:06:23 +0000 (19:06 -0600)]
merge heads

13 years agocave to those who like readable code
Benjamin Peterson [Wed, 23 Nov 2011 01:05:49 +0000 (19:05 -0600)]
cave to those who like readable code

13 years agoIssue #13458: Fix a memory leak in the ssl module when decoding a certificate with...
Antoine Pitrou [Wed, 23 Nov 2011 00:42:52 +0000 (01:42 +0100)]
Issue #13458: Fix a memory leak in the ssl module when decoding a certificate with a subjectAltName.
Patch by Robert Xiao.

13 years agoIssue #13458: Fix a memory leak in the ssl module when decoding a certificate with...
Antoine Pitrou [Wed, 23 Nov 2011 00:39:19 +0000 (01:39 +0100)]
Issue #13458: Fix a memory leak in the ssl module when decoding a certificate with a subjectAltName.
Patch by Robert Xiao.

13 years agorevert cset 6a0da9b65e54 against sched.py committed by accident
Giampaolo Rodola' [Tue, 22 Nov 2011 23:03:15 +0000 (00:03 +0100)]
revert cset 6a0da9b65e54 against sched.py committed by accident

13 years ago(Merge 3.2) Issue #13436: Fix unsetenv() test on Windows
Victor Stinner [Tue, 22 Nov 2011 21:32:28 +0000 (22:32 +0100)]
(Merge 3.2) Issue #13436: Fix unsetenv() test on Windows

13 years agoIssue #13436: Fix unsetenv() test on Windows
Victor Stinner [Tue, 22 Nov 2011 21:30:19 +0000 (22:30 +0100)]
Issue #13436: Fix unsetenv() test on Windows

13 years agoMerge branch default
Victor Stinner [Tue, 22 Nov 2011 21:23:23 +0000 (22:23 +0100)]
Merge branch default

13 years agoMerge branch 3.2
Victor Stinner [Tue, 22 Nov 2011 21:22:26 +0000 (22:22 +0100)]
Merge branch 3.2

13 years ago(Merge 3.2) Issue #13415: os.unsetenv() doesn't ignore errors anymore.
Victor Stinner [Tue, 22 Nov 2011 21:16:17 +0000 (22:16 +0100)]
(Merge 3.2) Issue #13415: os.unsetenv() doesn't ignore errors anymore.

13 years agoMerge branch 3.2
Amaury Forgeot d'Arc [Tue, 22 Nov 2011 21:02:01 +0000 (22:02 +0100)]
Merge branch 3.2

13 years agoIssue #13415: os.unsetenv() doesn't ignore errors anymore.
Victor Stinner [Tue, 22 Nov 2011 21:01:28 +0000 (22:01 +0100)]
Issue #13415: os.unsetenv() doesn't ignore errors anymore.

13 years agoIssue #13436: commit regenerated Python-ast.c
Amaury Forgeot d'Arc [Tue, 22 Nov 2011 20:52:30 +0000 (21:52 +0100)]
Issue #13436: commit regenerated Python-ast.c

13 years agoIssue #13436: Fix a bogus error message when an AST object was passed
Amaury Forgeot d'Arc [Tue, 22 Nov 2011 20:51:55 +0000 (21:51 +0100)]
Issue #13436: Fix a bogus error message when an AST object was passed
an invalid integer value.

13 years agofix compiler warning by implementing this more cleverly
Benjamin Peterson [Tue, 22 Nov 2011 20:29:32 +0000 (15:29 -0500)]
fix compiler warning by implementing this more cleverly

13 years agosort last committed name in alphabetical order
Giampaolo Rodola' [Tue, 22 Nov 2011 20:19:37 +0000 (21:19 +0100)]
sort last committed name in alphabetical order

13 years agoIssue #13156: _PyGILState_Reinit(): Re-associate the auto thread state with the
Charles-François Natali [Tue, 22 Nov 2011 18:51:14 +0000 (19:51 +0100)]
Issue #13156: _PyGILState_Reinit(): Re-associate the auto thread state with the
TLS key only if the thread that called fork() had an associated auto thread
state (this might not be the case for example for a thread created outside of
Python calling into a subinterpreter).

13 years agoIssue #13156: _PyGILState_Reinit(): Re-associate the auto thread state with the
Charles-François Natali [Tue, 22 Nov 2011 18:49:51 +0000 (19:49 +0100)]
Issue #13156: _PyGILState_Reinit(): Re-associate the auto thread state with the
TLS key only if the thread that called fork() had an associated auto thread
state (this might not be the case for example for a thread created outside of
Python calling into a subinterpreter).

13 years agobytes() can't be used to get a representation of an object.
Amaury Forgeot d'Arc [Tue, 22 Nov 2011 18:34:08 +0000 (19:34 +0100)]
bytes() can't be used to get a representation of an object.

13 years agoIssue #12156: Skip test_multiprocessing on systems which don't support enough
Charles-François Natali [Tue, 22 Nov 2011 17:55:22 +0000 (18:55 +0100)]
Issue #12156: Skip test_multiprocessing on systems which don't support enough
POSIX semaphores (among which FreeBSD < 8).

13 years agoIssue #13093: Perform a real merge.
Charles-François Natali [Tue, 22 Nov 2011 17:53:49 +0000 (18:53 +0100)]
Issue #13093: Perform a real merge.

13 years agoIssue #12156: Skip test_multiprocessing on systems which don't support enough
Charles-François Natali [Tue, 22 Nov 2011 17:36:39 +0000 (18:36 +0100)]
Issue #12156: Skip test_multiprocessing on systems which don't support enough
POSIX semaphores (among which FreeBSD < 8).

13 years agofix wrong credit and issue id given in previous commit
Giampaolo Rodola' [Tue, 22 Nov 2011 12:37:58 +0000 (13:37 +0100)]
fix wrong credit and issue id given in previous commit

13 years agoFix 13245:
Giampaolo Rodola' [Tue, 22 Nov 2011 12:33:34 +0000 (13:33 +0100)]
Fix 13245:
sched.scheduler class constructor's timefunc and delayfunct parameters are now optional.
scheduler.enter and scheduler.enterabs methods gained a new kwargs parameter.

Patch contributed by Matt Mulsow.

13 years agofind_maxchar_surrogates() reuses surrogate macros
Victor Stinner [Tue, 22 Nov 2011 02:38:40 +0000 (03:38 +0100)]
find_maxchar_surrogates() reuses surrogate macros

13 years agoRemove "#ifdef Py_UNICODE_WIDE": Python is now always wide
Victor Stinner [Tue, 22 Nov 2011 02:31:20 +0000 (03:31 +0100)]
Remove "#ifdef Py_UNICODE_WIDE": Python is now always wide

13 years agoIssue #13441: Disable temporary the check on the maximum character until
Victor Stinner [Tue, 22 Nov 2011 02:27:53 +0000 (03:27 +0100)]
Issue #13441: Disable temporary the check on the maximum character until
the Solaris issue is solved.

But add assertion on the maximum character in various encoders: UTF-7, UTF-8,
wide character (wchar_t*, Py_UNICODE*), unicode-escape, raw-unicode-escape.

Fix also unicode_encode_ucs1() for backslashreplace error handler: Python is
now always "wide".

13 years agoFix compiler warnings
Victor Stinner [Tue, 22 Nov 2011 01:30:47 +0000 (02:30 +0100)]
Fix compiler warnings

13 years agoUse the new Unicode API
Victor Stinner [Tue, 22 Nov 2011 01:27:30 +0000 (02:27 +0100)]
Use the new Unicode API

 * Replace PyUnicode_FromUnicode(NULL, 0) by PyUnicode_New(0, 0)
 * Replce PyUnicode_FromUnicode(str, len) by PyUnicode_FromWideChar(str, len)
 * Replace Py_UNICODE by wchar_t
 * posix_putenv() uses PyUnicode_FromFormat() to create the string, instead
   of PyUnicode_FromUnicode() + _snwprintf()