diff Python/codecs.c @ 18908:79c676f9b34a legacy-trunk

This patch turns the Python API mismatch notice into a standard Python warning which can be catched by means of the Python warning framework. It also adds two new APIs which hopefully make it easier for Python to switch to buffer overflow safe [v]snprintf() APIs for error reporting et al. The two new APIs are PyOS_snprintf() and PyOS_vsnprintf() and work just like the standard ones in many C libs. On platforms which have snprintf(), the native APIs are used, on all other an emulation with snprintf() tries to do its best.
author Marc-André Lemburg <mal@egenix.com>
date Tue, 31 Jul 2001 13:24:44 +0000
parents 25ddd3dc7a7a
children 898304f6da23 416654e27d88
line wrap: on
line diff