mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	bpo-47000: Make io.text_encoding() respects UTF-8 mode (GH-32003)
				
					
				
			Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
This commit is contained in:
		
							parent
							
								
									6db2db91b9
								
							
						
					
					
						commit
						4216dce04b
					
				
					 10 changed files with 52 additions and 17 deletions
				
			
		|  | @ -841,7 +841,10 @@ static PyObject * | |||
| sys_getdefaultencoding_impl(PyObject *module) | ||||
| /*[clinic end generated code: output=256d19dfcc0711e6 input=d416856ddbef6909]*/ | ||||
| { | ||||
|     return PyUnicode_FromString(PyUnicode_GetDefaultEncoding()); | ||||
|     _Py_DECLARE_STR(utf_8, "utf-8"); | ||||
|     PyObject *ret = &_Py_STR(utf_8); | ||||
|     Py_INCREF(ret); | ||||
|     return ret; | ||||
| } | ||||
| 
 | ||||
| /*[clinic input]
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Inada Naoki
						Inada Naoki