Minor updates to reflect the current implementation.

This commit is contained in:
Martin v. Löwis 2001-09-11 09:59:14 +00:00
parent b44c53c0ef
commit fb1482143b
1 changed files with 8 additions and 6 deletions

View File

@ -187,20 +187,22 @@ Proposed Solution
Implementation Implementation
There is a new (experimental) define: There is a new define:
#define PY_UNICODE_SIZE 2 #define Py_UNICODE_SIZE 2
To test whether UCS2 or UCS4 is in use, the derived macro
Py_UNICODE_WIDE should be used, which is defined when UCS-4 is in
use.
There is a new configure option: There is a new configure option:
--enable-unicode=ucs2 configures a narrow Py_UNICODE, and uses --enable-unicode=ucs2 configures a narrow Py_UNICODE, and uses
wchar_t if it fits wchar_t if it fits
--enable-unicode=ucs4 configures a wide Py_UNICODE, and uses --enable-unicode=ucs4 configures a wide Py_UNICODE, and uses
whchar_t if it fits wchar_t if it fits
--enable-unicode same as "=ucs2" --enable-unicode same as "=ucs2"
--disable-unicode entirely remove the Unicode functionality.
The intention is that --disable-unicode, or --enable-unicode=no
removes the Unicode type altogether; this is not yet implemented.
It is also proposed that one day --enable-unicode will just It is also proposed that one day --enable-unicode will just
default to the width of your platforms wchar_t. default to the width of your platforms wchar_t.