diff options
author | Guido van Rossum <guido@python.org> | 2000-03-28 20:29:59 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-03-28 20:29:59 +0000 |
commit | 37d7c75f2ac618fbf12f6fd15a820990cdbc06c3 (patch) | |
tree | ba04640b275c2c4b27224851aac6d06a563a2477 /Include | |
parent | b581dc6483af08c1000839ac1c3114335966e23d (diff) | |
download | cpython-37d7c75f2ac618fbf12f6fd15a820990cdbc06c3.tar.gz |
Marc-Andre Lemburg:
The attached patch set includes a workaround to get Python with
Unicode compile on BSDI 4.x (courtesy Thomas Wouters; the cause
is a bug in the BSDI wchar.h header file) and Python interfaces
for the MBCS codec donated by Mark Hammond.
Also included are some minor corrections w/r to the docs of
the new "es" and "es#" parser markers (use PyMem_Free() instead
of free(); thanks to Mark Hammond for finding these).
The unicodedata tests are now in a separate file
(test_unicodedata.py) to avoid problems if the module cannot
be found.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/unicodeobject.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index e9e60d8bae..cfc812666e 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -82,6 +82,10 @@ Unicode Integration Proposal (see file Misc/unicode.txt). #endif #ifdef HAVE_WCHAR_H +/* Work around a cosmetic bug in BSDI 4.x wchar.h; thanks to Thomas Wouters */ +# ifdef _HAVE_BSDI +# include <time.h> +# endif # include "wchar.h" #endif @@ -562,7 +566,9 @@ extern DL_IMPORT(PyObject *) PyUnicode_TranslateCharmap( ); #ifdef MS_WIN32 + /* --- MBCS codecs for Windows -------------------------------------------- */ + extern DL_IMPORT(PyObject*) PyUnicode_DecodeMBCS( const char *string, /* MBCS encoded string */ int length, /* size of string */ @@ -579,8 +585,8 @@ extern DL_IMPORT(PyObject*) PyUnicode_EncodeMBCS( const char *errors /* error handling */ ); - #endif /* MS_WIN32 */ + /* --- Methods & Slots ---------------------------------------------------- These are capable of handling Unicode objects and strings on input |