summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-05-16 12:46:20 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-05-16 12:46:20 (GMT)
commit0d4e01ca0747dd3d6484403acb7a1728b0c8652e (patch)
treec48ce7ed38a885b28f645c2d879c3659dbeb6156 /Python
parentb96ebd4f9d89198dc6a7d0d446a0b8762ff2568b (diff)
downloadcpython-0d4e01ca0747dd3d6484403acb7a1728b0c8652e.zip
cpython-0d4e01ca0747dd3d6484403acb7a1728b0c8652e.tar.gz
cpython-0d4e01ca0747dd3d6484403acb7a1728b0c8652e.tar.bz2
Issue #13916: Fix surrogatepass error handler on Windows
Diffstat (limited to 'Python')
-rw-r--r--Python/codecs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/codecs.c b/Python/codecs.c
index 7003136..4c2ae38 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;
}