mirror of
				https://github.com/python/cpython.git
				synced 2025-11-01 06:01:29 +00:00 
			
		
		
		
	Marc-Andre Lemburg <mal@lemburg.com>:
Fixed a typo and removed a debug printf(). Thanks to Finn Bock for finding these.
This commit is contained in:
		
							parent
							
								
									1f2d4640b8
								
							
						
					
					
						commit
						07ceb67d9c
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -732,7 +732,6 @@ PyObject *PyUnicode_EncodeUTF8(const Py_UNICODE *s, | ||||||
| 	    /* These byte ranges are reserved for UTF-16 surrogate
 | 	    /* These byte ranges are reserved for UTF-16 surrogate
 | ||||||
| 	       bytes which the Python implementation currently does | 	       bytes which the Python implementation currently does | ||||||
| 	       not support. */ | 	       not support. */ | ||||||
| 	    printf("code range problem: U+%04x\n", ch); |  | ||||||
| 	    if (utf8_encoding_error(&s, &p, errors,  | 	    if (utf8_encoding_error(&s, &p, errors,  | ||||||
| 				    "unsupported code range")) | 				    "unsupported code range")) | ||||||
| 		goto onError; | 		goto onError; | ||||||
|  | @ -1734,7 +1733,7 @@ PyObject *PyUnicode_DecodeCharmap(const char *s, | ||||||
| 	    int value = PyInt_AS_LONG(x); | 	    int value = PyInt_AS_LONG(x); | ||||||
| 	    if (value < 0 || value > 65535) { | 	    if (value < 0 || value > 65535) { | ||||||
| 		PyErr_SetString(PyExc_TypeError, | 		PyErr_SetString(PyExc_TypeError, | ||||||
| 				"character mapping must be in range(65336)"); | 				"character mapping must be in range(65536)"); | ||||||
| 		Py_DECREF(x); | 		Py_DECREF(x); | ||||||
| 		goto onError; | 		goto onError; | ||||||
| 	    } | 	    } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Marc-André Lemburg
						Marc-André Lemburg