[Python-checkins] r43389 - in python/branches/release24-maint: Misc/NEWS Modules/cjkcodecs/_codecs_cn.c

hyeshik.chang python-checkins at python.org
Tue Mar 28 10:27:28 CEST 2006


Author: hyeshik.chang
Date: Tue Mar 28 10:27:27 2006
New Revision: 43389
Modified:
 python/branches/release24-maint/Misc/NEWS
 python/branches/release24-maint/Modules/cjkcodecs/_codecs_cn.c
Log:
Ubuntu bug #29289: Fixed a bug that the gb18030 codec raises
RuntimeError on encoding surrogate pair area on UCS4 build.
This is a partial backport of r43320. (Approved by Anthony Baxter)
Modified: python/branches/release24-maint/Misc/NEWS
==============================================================================
--- python/branches/release24-maint/Misc/NEWS	(original)
+++ python/branches/release24-maint/Misc/NEWS	Tue Mar 28 10:27:27 2006
@@ -17,11 +17,17 @@
 - A threading issue that caused random segfaults on some platforms from 
 the testsuite was fixed in test_capi.
 
+Extension Modules
+-----------------
+
 - Reverted fix for Bug #1379994: Builtin unicode_escape and 
 raw_unicode_escape codec now encodes backslash correctly.
 This caused another issue for unicode repr strings being double-escaped
 (SF Bug #1459029). Correct fix will be in 2.5, but is too risky for 2.4.3.
 
+- Ubuntu bug #29289: Fixed a bug that the gb18030 codec raises
+ RuntimeError on encoding surrogate pair area on UCS4 build.
+
 What's New in Python 2.4.3c1?
 =============================
 
Modified: python/branches/release24-maint/Modules/cjkcodecs/_codecs_cn.c
==============================================================================
--- python/branches/release24-maint/Modules/cjkcodecs/_codecs_cn.c	(original)
+++ python/branches/release24-maint/Modules/cjkcodecs/_codecs_cn.c	Tue Mar 28 10:27:27 2006
@@ -218,11 +218,8 @@
 					break;
 				}
 
-			if (utrrange->first == 0) {
-				PyErr_SetString(PyExc_RuntimeError,
-						"unicode mapping invalid");
+			if (utrrange->first == 0)
 				return 1;
-			}
 			continue;
 		}
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /