Victor Stinner
ce0e7daf41
Remove temporary hacks for the issue #13441
2011-11-21 16:01:27 +01:00
Victor Stinner
a697b37300
Another temporary hack to debug the issue #13441
...
Dump the wchar_t that we are going to decode and dump the locale
2011-11-21 15:41:17 +01:00
Victor Stinner
da29cc36aa
Issue #13441 : _PyUnicode_CheckConsistency() dumps the string if the maximum
...
character is bigger than U+10FFFF and locale.localeconv() dumps the string
before decoding it.
Temporary hack to debug the issue #13441 .
2011-11-21 14:31:41 +01:00
Victor Stinner
4eea849469
CJK codecs checks for conversion to Py_UNICODE* failures
2011-11-21 03:01:27 +01:00
Victor Stinner
9a80faba88
MultibyteCodec_Encode() checks if PyUnicode_AS_UNICODE() failed
2011-11-21 02:50:14 +01:00
Victor Stinner
9e30aa52fd
Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()
...
And PyUnicode_GetSize() => PyUnicode_GetLength()
2011-11-21 02:49:52 +01:00
Victor Stinner
ea90e0fd95
ctypes check for PyUnicode_GET_SIZE() failure
2011-11-21 02:11:26 +01:00
Victor Stinner
8ef18872b4
test_widechar() uses the new Unicode API
...
PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()
2011-11-21 02:06:57 +01:00
Victor Stinner
3335447646
Check for PyUnicode_AS_UNICODE() failure
2011-11-21 02:01:41 +01:00
Victor Stinner
2b979bfa3c
Use PyUnicode_CompareWithASCIIString() instead of Py_UNICODE_strcmp() to avoid
...
the deprecate Py_UNICODE type
2011-11-20 19:32:09 +01:00
Mark Dickinson
b96172e2cf
Issue #9530 : Fix undefined behaviour due to signed overflow in testcapi_long.h.
2011-11-19 17:58:15 +00:00
Antoine Pitrou
e532456965
Issue #13393 : In TextIOWrapper.read(n), try to read `n` characters as
...
once rather than limit ourselves to the default chunk size.
2011-11-19 00:39:01 +01:00
Ezio Melotti
adc417ce36
#13406 : fix more deprecation warnings and move the deprecation of unicode-internal earlier in the code.
2011-11-17 12:23:34 +02:00
Victor Stinner
74168975cc
socket_gethostname() uses a wchar_t* with PyMem_Malloc() to avoid the
...
old Unicode API.
2011-11-17 01:11:36 +01:00
Victor Stinner
f7c5ae2257
Issue #13374 : Deprecate os.getcwdb() on Windows
2011-11-16 23:43:07 +01:00
Ezio Melotti
11060a4a48
#13406 : silence deprecation warnings in test_codecs.
2011-11-16 09:39:10 +02:00
Antoine Pitrou
56a220ae4e
Issue #13393 : BufferedReader.read1() now asks the full requested size to
...
the raw stream instead of limiting itself to the buffer size.
2011-11-16 00:56:10 +01:00
Victor Stinner
1ab6c2d2c2
Issue #13374 : The Windows bytes API has been deprecated in the os module. Use
...
Unicode filenames instead of bytes filenames to not depend on the ANSI code
page anymore and to support any filename.
2011-11-15 22:27:41 +01:00
Antoine Pitrou
9a812cbc89
Issue #13389 : Full garbage collection passes now clear the freelists for
...
list and dict objects. They already cleared other freelists in the
interpreter.
2011-11-15 00:00:12 +01:00
Jesus Cea
d8b9ae6e8f
Issue #6397 : Support '/dev/poll' polling objects in select module, under Solaris & derivatives.
2011-11-14 19:07:41 +01:00
Antoine Pitrou
5c398e8395
Restore performance of special casings for utf-16 and utf-32 in TextIOWrapper
2011-11-13 04:11:37 +01:00
Antoine Pitrou
c28e2e53ba
In text I/O, optimize scanning for new lines with 1-byte unicode chars
2011-11-13 03:53:42 +01:00
Antoine Pitrou
c1b0bfdb04
Fix memory leak in io.StringIO
2011-11-12 22:34:28 +01:00
Antoine Pitrou
f72d4ef327
Plug some (unlikely) refleaks.
2011-11-12 18:05:15 +01:00
Florent Xicluna
e41f0de84d
Merge 3.2, fix typos.
2011-11-11 19:39:25 +01:00
Florent Xicluna
992d9e081f
Fix few typos.
2011-11-11 19:35:42 +01:00
Antoine Pitrou
de20b0b50e
Issue #13149 : Speed up append-only StringIO objects.
...
This is very similar to the "lazy strings" idea.
2011-11-10 21:47:38 +01:00
Victor Stinner
9f4b1e9c50
Fix and deprecated the unicode_internal codec
...
unicode_internal codec uses Py_UNICODE instead of the real internal
representation (PEP 393: Py_UCS1, Py_UCS2 or Py_UCS4) for backward
compatibility.
2011-11-10 20:56:30 +01:00
Victor Stinner
87a7c825f0
Fix build on Windows
2011-11-10 20:05:55 +01:00
Charles-François Natali
10b8cf4455
Issue #7777 : socket: Add Reliable Datagram Sockets (PF_RDS) support.
2011-11-10 19:21:37 +01:00
Martin v. Löwis
1db7c13be1
Port encoders from Py_UNICODE API to unicode object API.
2011-11-10 18:24:32 +01:00
Ezio Melotti
df8077ecd3
#13379 : merge with 3.2.
2011-11-10 09:37:43 +02:00
Ezio Melotti
98d2c0aba3
#13379 : update Unicode version in unicodedata docstrings and comments.
2011-11-10 09:36:34 +02:00
Victor Stinner
6139c1bfa3
Issue #12442 : nt._getdiskusage() is now using the Windows Unicode API
2011-11-09 22:14:14 +01:00
Jesus Cea
d03a49150f
Commit 59dca1e2363d for issue #13327 introduced a compilation warning
2011-11-08 17:28:04 +01:00
Brian Curtin
569b494320
Fix #13327 . utimensat now has the atime and mtime arguments set as optional,
...
defaulting to None like the other utimes family members. It now accepts
keyword arguments because, unlike other other functions in the family,
it has a `flags` value at the end of the argument list (which
retains its 0 default).
2011-11-07 16:09:20 -06:00
Brian Curtin
7ef53ef916
Forgot to apply the futimesat change.
2011-11-07 14:38:24 -06:00
Brian Curtin
c1b65d1831
Fix 13327. Remove explicit None arguments from futimes, futimens, futimesat,
...
and lutimes.
2011-11-07 14:18:54 -06:00
Brian Curtin
b0d5b5d3b2
Adjust None handling to be a bit more clean. Thanks to Benjamin
...
for pointing it out.
2011-11-07 10:51:18 -06:00
Brian Curtin
52fbea1d87
Fix #13327 . Remove the need for an explicit None as the second argument to
...
os.utime in order to update to the current time. The second argument is now
optional.
2011-11-06 13:41:17 -06:00
Amaury Forgeot d'Arc
864741b2c7
Issue #13350 : Replace most usages of PyUnicode_Format by PyUnicode_FromFormat.
2011-11-06 15:10:48 +01:00
Victor Stinner
3d7acb08c4
Issue #12342 : Fix compilation on Mac OS X
2011-11-04 09:49:24 +01:00
Ross Lagerwall
ab1078b987
(Merge 3.2) Issue #13339 .
2011-11-04 07:15:35 +02:00
Ross Lagerwall
dcfde5aac9
Issue #13339 : Fix compile error in posixmodule.c due to missing semicolon.
...
Thanks to Robert Xiao.
2011-11-04 07:09:14 +02:00
Victor Stinner
6777e6f9b1
(Merge 3.2) Issue #12342 : Improve _tkinter error message on unencodable character
2011-11-04 00:43:35 +01:00
Victor Stinner
7ab4192e82
Issue #12342 : Improve _tkinter error message on unencodable character
2011-11-04 00:36:46 +01:00
Victor Stinner
65f51bb150
(Merge 3.2) Issue #10570 : curses.putp() is now expecting a byte string, instead
...
of a Unicode string.
This is an incompatible change, but putp() is used to emit terminfo commands,
which are bytes strings, not Unicode strings.
2011-11-03 20:36:55 +01:00
Victor Stinner
b3bc7e764d
Issue #10570 : curses.putp() is now expecting a byte string, instead of a
...
Unicode string.
This is an incompatible change, but putp() is used to emit terminfo commands,
which are bytes strings, not Unicode strings.
2011-11-03 20:35:40 +01:00
Victor Stinner
df5bccc8a3
(Merge 3.2) Issue #10570 : curses.tigetstr() is now expecting a byte string,
...
instead of a Unicode string.
This is an incompatible change, but the previous behaviour was completly wrong.
2011-11-02 23:47:58 +01:00
Victor Stinner
2662133a05
Issue #10570 : curses.tigetstr() is now expecting a byte string, instead of a
...
Unicode string.
This is an incompatible change, but the previous behaviour was completly wrong.
2011-11-02 23:45:29 +01:00