Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e569fb5 commit c5c57e6Copy full SHA for c5c57e6
2 files changed
Misc/NEWS
@@ -186,6 +186,9 @@ Core and builtins
186
Extension Modules
187
-----------------
188
189
+- Bug #1290333: Added a workaround for cjkcodecs' _codecs_cn build
190
+ problem on AIX.
191
+
192
- Bug #869197: os.setgroups rejects long integer arguments
193
194
- Bug #1346533, select.poll() doesn't raise an error if timeout > sys.maxint
Modules/cjkcodecs/_codecs_cn.c
@@ -8,6 +8,14 @@
8
#include "cjkcodecs.h"
9
#include "mappings_cn.h"
10
11
+/**
12
+ * hz is predefined as 100 on AIX. So we undefine it to avoid
13
+ * conflict against hz codec's.
14
+ */
15
+#ifdef _AIX
16
+#undef hz
17
+#endif
18
19
#define GBK_PREDECODE(dc1, dc2, assi) \
20
if ((dc1) == 0xa1 && (dc2) == 0xaa) (assi) = 0x2014; \
21
else if ((dc1) == 0xa8 && (dc2) == 0x44) (assi) = 0x2015; \
0 commit comments