]> granicus.if.org Git - python/commitdiff
Marc-Andre Lemburg <mal@lemburg.com>:
authorMarc-André Lemburg <mal@egenix.com>
Sat, 10 Jun 2000 09:32:51 +0000 (09:32 +0000)
committerMarc-André Lemburg <mal@egenix.com>
Sat, 10 Jun 2000 09:32:51 +0000 (09:32 +0000)
Fixed a typo and removed a debug printf(). Thanks to Finn Bock
for finding these.

Objects/unicodeobject.c

index 1ea83f6ea56de9e444b972d4e33eb0383baacca9..eaa381bbf9f08674878c85cec8f61e778f387a9b 100644 (file)
@@ -732,7 +732,6 @@ PyObject *PyUnicode_EncodeUTF8(const Py_UNICODE *s,
            /* These byte ranges are reserved for UTF-16 surrogate
               bytes which the Python implementation currently does
               not support. */
-           printf("code range problem: U+%04x\n", ch);
            if (utf8_encoding_error(&s, &p, errors, 
                                    "unsupported code range"))
                goto onError;
@@ -1734,7 +1733,7 @@ PyObject *PyUnicode_DecodeCharmap(const char *s,
            int value = PyInt_AS_LONG(x);
            if (value < 0 || value > 65535) {
                PyErr_SetString(PyExc_TypeError,
-                               "character mapping must be in range(65336)");
+                               "character mapping must be in range(65536)");
                Py_DECREF(x);
                goto onError;
            }