[KoCo-CVS] [Commit] iconvcodec _iconv_codec.c
Brought to you by:
perky
From: Hye-Shik C. <pe...@us...> - 2003-06-11 12:30:43
|
perky 03/06/11 05:30:40 Modified: . _iconv_codec.c Log: Use a correct format string on python-ucs4 Revision Changes Path 1.10 +5 -1 iconvcodec/_iconv_codec.c Index: _iconv_codec.c =================================================================== RCS file: /cvsroot/koco/iconvcodec/_iconv_codec.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- _iconv_codec.c 11 Jun 2003 12:07:01 -0000 1.9 +++ _iconv_codec.c 11 Jun 2003 12:30:38 -0000 1.10 @@ -24,7 +24,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: _iconv_codec.c,v 1.9 2003/06/11 12:07:01 perky Exp $ + * $Id: _iconv_codec.c,v 1.10 2003/06/11 12:30:38 perky Exp $ */ #include "Python.h" @@ -370,7 +370,11 @@ #ifdef LACKS_ERROR_CALLBACKS if (esize == 1) PyErr_Format(PyExc_UnicodeError, +#if Py_UNICODE_SIZE == 2 "'%s' codec can't encode byte '\\u%04x' in position %d: %s", +#else + "'%s' codec can't encode byte '\\u%08lx' in position %d: %s", +#endif self->encoding, *buf->inbuf, start, reason); else PyErr_Format(PyExc_UnicodeError, |