From 0d4e01ca0747dd3d6484403acb7a1728b0c8652e Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 16 May 2014 14:46:20 +0200 Subject: Issue #13916: Fix surrogatepass error handler on Windows --- Python/codecs.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Python/codecs.c') diff --git a/Python/codecs.c b/Python/codecs.c index 700313633e1..4c2ae381b36 100644 --- a/Python/codecs.c +++ b/Python/codecs.c @@ -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; } -- cgit v1.2.3