[Python-checkins] CVS: python/dist/src/Misc unicode.txt,3.3,3.4

Guido van Rossum python-dev@python.org
Tue, 28 Mar 2000 15:30:00 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Misc
In directory eric:/home/guido/hp/mal/py-patched/Misc

Modified Files:
	unicode.txt 
Log Message:
Marc-Andre Lemburg:

The attached patch set includes a workaround to get Python with
Unicode compile on BSDI 4.x (courtesy Thomas Wouters; the cause
is a bug in the BSDI wchar.h header file) and Python interfaces
for the MBCS codec donated by Mark Hammond.

Also included are some minor corrections w/r to the docs of
the new "es" and "es#" parser markers (use PyMem_Free() instead
of free(); thanks to Mark Hammond for finding these).

The unicodedata tests are now in a separate file
(test_unicodedata.py) to avoid problems if the module cannot
be found.



Index: unicode.txt
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Misc/unicode.txt,v
retrieving revision 3.3
retrieving revision 3.4
diff -C2 -r3.3 -r3.4
*** unicode.txt	2000/03/24 22:14:19	3.3
--- unicode.txt	2000/03/28 20:29:58	3.4
***************
*** 741,746 ****
  	returned through *buffer as NULL-terminated string.
  	The encoded may not contain embedded NULL characters.
! 	The caller is responsible for free()ing the allocated *buffer
! 	after usage.
  
    "es#":
--- 741,746 ----
  	returned through *buffer as NULL-terminated string.
  	The encoded may not contain embedded NULL characters.
! 	The caller is responsible for calling PyMem_Free()
! 	to free the allocated *buffer after usage.
  
    "es#":
***************
*** 756,761 ****
  	If *buffer is NULL, a buffer of the needed size is
  	allocated and output copied into it. *buffer is then
! 	updated to point to the allocated memory area. The caller
! 	is responsible for free()ing *buffer after usage.
  
  	In both cases *buffer_len is updated to the number of
--- 756,762 ----
  	If *buffer is NULL, a buffer of the needed size is
  	allocated and output copied into it. *buffer is then
! 	updated to point to the allocated memory area.
! 	The caller is responsible for calling PyMem_Free()
! 	to free the allocated *buffer after usage.
  
  	In both cases *buffer_len is updated to the number of
***************
*** 785,789 ****
  	}
  	str = PyString_FromStringAndSize(buffer, buffer_len);
! 	free(buffer);
  	return str;
      }
--- 786,790 ----
  	}
  	str = PyString_FromStringAndSize(buffer, buffer_len);
! 	PyMem_Free(buffer);
  	return str;
      }
***************
*** 808,812 ****
  	}
  	str = PyString_FromString(buffer);
! 	free(buffer);
  	return str;
      }
--- 809,813 ----
  	}
  	str = PyString_FromString(buffer);
! 	PyMem_Free(buffer);
  	return str;
      }