Minor updates to reflect the current implementation.
This commit is contained in:
parent
b44c53c0ef
commit
fb1482143b
14
pep-0261.txt
14
pep-0261.txt
|
@ -187,20 +187,22 @@ Proposed Solution
|
|||
|
||||
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:
|
||||
|
||||
--enable-unicode=ucs2 configures a narrow Py_UNICODE, and uses
|
||||
wchar_t if it fits
|
||||
--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"
|
||||
|
||||
The intention is that --disable-unicode, or --enable-unicode=no
|
||||
removes the Unicode type altogether; this is not yet implemented.
|
||||
--disable-unicode entirely remove the Unicode functionality.
|
||||
|
||||
It is also proposed that one day --enable-unicode will just
|
||||
default to the width of your platforms wchar_t.
|
||||
|
|
Loading…
Reference in New Issue