[Python-checkins] r46001 - in python/trunk: Misc/ACKS Misc/NEWS Objects/unicodeobject.c

neal.norwitz python-checkins at python.org
Mon May 15 09:17:23 CEST 2006


Author: neal.norwitz
Date: Mon May 15 09:17:23 2006
New Revision: 46001

Modified:
   python/trunk/Misc/ACKS
   python/trunk/Misc/NEWS
   python/trunk/Objects/unicodeobject.c
Log:
Patch #1488312, Fix memory alignment problem on SPARC in unicode.  Will backport

Modified: python/trunk/Misc/ACKS
==============================================================================
--- python/trunk/Misc/ACKS	(original)
+++ python/trunk/Misc/ACKS	Mon May 15 09:17:23 2006
@@ -455,6 +455,7 @@
 Russel Owen
 Mike Pall
 Todd R. Palmer
+Jan Palus
 Alexandre Parenteau
 Dan Parisien
 Harri Pasanen

Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Mon May 15 09:17:23 2006
@@ -12,6 +12,8 @@
 Core and builtins
 -----------------
 
+- Patch #1488312, Fix memory alignment problem on SPARC in unicode
+
 - Bug #1487966: Fix SystemError with conditional expression in assignment
 
 - WindowsError now has two error code attributes: errno, which carries

Modified: python/trunk/Objects/unicodeobject.c
==============================================================================
--- python/trunk/Objects/unicodeobject.c	(original)
+++ python/trunk/Objects/unicodeobject.c	Mon May 15 09:17:23 2006
@@ -2313,7 +2313,7 @@
     end = s + size;
 
     while (s < end) {
-        *p = *(Py_UNICODE *)s;
+        memcpy(p, s, sizeof(Py_UNICODE));
         /* We have to sanity check the raw data, otherwise doom looms for
            some malformed UCS-4 data. */
         if (


More information about the Python-checkins mailing list