Issue #13916: Fix surrogatepass error handler on Windows

This commit is contained in:
Victor Stinner 2014-05-16 14:46:20 +02:00
parent b96ebd4f9d
commit 0d4e01ca07
2 changed files with 4 additions and 6 deletions

View file

@ -960,6 +960,10 @@ get_standard_encoding(const char *encoding, int *bytelength)
}
}
}
else if (strcmp(encoding, "CP_UTF8") == 0) {
*bytelength = 3;
return ENC_UTF8;
}
return ENC_UNKNOWN;
}