Message23383
Logged In: YES
user_id=28380
I've been bitten by the same bug. In my case, the problem was with Qt, not GTK.
It's not actually necessary to check the expat version; just see if XML_ErrorString actually returns anything.
Here's the patch I use for this problem:
--- python/Modules/pyexpat.c 2005-01-06 16:26:13 -08:00
+++ python/Modules/pyexpat.c 2005-01-31 23:46:36 -08:00
@@ -1936,9 +1936,12 @@
}
#endif
-#define MYCONST(name) \
- PyModule_AddStringConstant(errors_module, #name, \
- (char*)XML_ErrorString(name))
+#define MYCONST(name) \
+ { \
+ char *_v = (char*)XML_ErrorString(name); \
+ if (_v) \
+ PyModule_AddStringConstant(errors_module, #name, _v); \
+ }
MYCONST(XML_ERROR_NO_MEMORY);
MYCONST(XML_ERROR_SYNTAX);
|
|
Date |
User |
Action |
Args |
2007-08-23 14:27:55 | admin | link | issue1075984 messages |
2007-08-23 14:27:55 | admin | create | |
|