mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Bug #1290333: Added a workaround for cjkcodecs' _codecs_cn module
build problem on AIX.
This commit is contained in:
parent
e569fb5d71
commit
c5c57e6d98
2 changed files with 11 additions and 0 deletions
|
@ -186,6 +186,9 @@ Core and builtins
|
||||||
Extension Modules
|
Extension Modules
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
- Bug #1290333: Added a workaround for cjkcodecs' _codecs_cn build
|
||||||
|
problem on AIX.
|
||||||
|
|
||||||
- Bug #869197: os.setgroups rejects long integer arguments
|
- Bug #869197: os.setgroups rejects long integer arguments
|
||||||
|
|
||||||
- Bug #1346533, select.poll() doesn't raise an error if timeout > sys.maxint
|
- Bug #1346533, select.poll() doesn't raise an error if timeout > sys.maxint
|
||||||
|
|
|
@ -8,6 +8,14 @@
|
||||||
#include "cjkcodecs.h"
|
#include "cjkcodecs.h"
|
||||||
#include "mappings_cn.h"
|
#include "mappings_cn.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* hz is predefined as 100 on AIX. So we undefine it to avoid
|
||||||
|
* conflict against hz codec's.
|
||||||
|
*/
|
||||||
|
#ifdef _AIX
|
||||||
|
#undef hz
|
||||||
|
#endif
|
||||||
|
|
||||||
#define GBK_PREDECODE(dc1, dc2, assi) \
|
#define GBK_PREDECODE(dc1, dc2, assi) \
|
||||||
if ((dc1) == 0xa1 && (dc2) == 0xaa) (assi) = 0x2014; \
|
if ((dc1) == 0xa1 && (dc2) == 0xaa) (assi) = 0x2014; \
|
||||||
else if ((dc1) == 0xa8 && (dc2) == 0x44) (assi) = 0x2015; \
|
else if ((dc1) == 0xa8 && (dc2) == 0x44) (assi) = 0x2015; \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue