File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2523,7 +2523,8 @@ _thread__get_name_impl(PyObject *module)
25232523 }
25242524
25252525#ifdef __sun
2526- // Decode Solaris/Illumos (e.g. OpenIndiana) thread names as ASCII since OpenIndiana only supports ASCII names.
2526+ // Decode Solaris/Illumos (e.g. OpenIndiana) thread names as ASCII
2527+ // since OpenIndiana only supports ASCII names.
25272528 return PyUnicode_DecodeASCII (name , strlen (name ), "surrogateescape" );
25282529#else
25292530 return PyUnicode_DecodeFSDefault (name );
@@ -2562,7 +2563,8 @@ _thread_set_name_impl(PyObject *module, PyObject *name_obj)
25622563{
25632564#ifndef MS_WINDOWS
25642565#ifdef __sun
2565- // Encode Solaris/Illumos thread names as ASCII since OpenIndiana does not support non-ASCII names
2566+ // Encode Solaris/Illumos thread names as ASCII
2567+ // since OpenIndiana does not support non-ASCII names.
25662568 const char * encoding = "ascii" ;
25672569#else
25682570 // Encode the thread name to the filesystem encoding using the "replace"
You can’t perform that action at this time.
0 commit comments