Kaydet (Commit) ef6fb3dc authored tarafından Neal Norwitz's avatar Neal Norwitz

Backport fix for patch #1297028, cjkcodecs does not initialize type pointer

üst d115df02
...@@ -4,6 +4,30 @@ Python News ...@@ -4,6 +4,30 @@ Python News
(editors: check NEWS.help for information about editing NEWS using ReST.) (editors: check NEWS.help for information about editing NEWS using ReST.)
What's New in Python 2.4.2 final?
=================================
*Release date: XX-SEP-2005*
Core and builtins
-----------------
Extension Modules
-----------------
- Patch #1297028: fix segfault if call type on MultibyteCodec,
MultibyteStreamReader, or MultibyteStreamWriter.
Tests
-----
Build
-----
What's New in Python 2.4.2c1 What's New in Python 2.4.2c1
============================ ============================
......
...@@ -1265,6 +1265,10 @@ static struct PyMethodDef __methods[] = { ...@@ -1265,6 +1265,10 @@ static struct PyMethodDef __methods[] = {
void void
init_multibytecodec(void) init_multibytecodec(void)
{ {
MultibyteCodec_Type.ob_type = &PyType_Type;
MultibyteStreamReader_Type.ob_type = &PyType_Type;
MultibyteStreamWriter_Type.ob_type = &PyType_Type;
Py_InitModule("_multibytecodec", __methods); Py_InitModule("_multibytecodec", __methods);
if (PyErr_Occurred()) if (PyErr_Occurred())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment