File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -114,15 +114,6 @@ static PyUnicodeObject *unicode_empty;
114
114
shared as well. */
115
115
static PyUnicodeObject * unicode_latin1 [256 ];
116
116
117
- /* Default encoding to use and assume when NULL is passed as encod
AA57
ing
118
- parameter; it is fixed to "utf-8". Always use the
119
- PyUnicode_GetDefaultEncoding() API to access this global.
120
-
121
- Don't forget to alter Py_FileSystemDefaultEncoding if you change the
122
- hard coded default!
123
- */
124
- static const char unicode_default_encoding [] = "utf-8" ;
125
-
126
117
/* Fast detection of the most frequent whitespace characters */
127
118
const unsigned char _Py_ascii_whitespace [] = {
128
119
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ,
@@ -1781,7 +1772,7 @@ Py_ssize_t PyUnicode_GetSize(PyObject *unicode)
1781
1772
1782
1773
const char * PyUnicode_GetDefaultEncoding (void )
1783
1774
{
1784
- return unicode_default_encoding ;
1775
+ return "utf-8" ;
1785
1776
}
1786
1777
1787
1778
/* create or adjust a UnicodeDecodeError */
You can’t perform that action at this time.
0 commit comments