https://github.com/python/cpython/commit/eb087d44cf120dde6d5f020ce930b6a1037b17f1
commit: eb087d44cf120dde6d5f020ce930b6a1037b17f1
branch: main
author: Brittany Reynoso <[email protected]>
committer: corona10 <[email protected]>
date: 2026-09-01T05:12:52Z
summary:
gh-156745: Inline CJK replacement writer call (gh-156744)
files:
M Modules/cjkcodecs/multibytecodec.c
diff --git a/Modules/cjkcodecs/multibytecodec.c
b/Modules/cjkcodecs/multibytecodec.c
index 32c96c9d2cb3cde..d90900457574d94 100644
--- a/Modules/cjkcodecs/multibytecodec.c
+++ b/Modules/cjkcodecs/multibytecodec.c
@@ -429,8 +429,8 @@ multibytecodec_decerror(const MultibyteCodec *codec,
}
if (errors == ERROR_REPLACE) {
- if (_PyUnicodeWriter_WriteChar(&buf->writer,
- Py_UNICODE_REPLACEMENT_CHARACTER) < 0)
+ if (_PyUnicodeWriter_WriteCharInline(
+ &buf->writer, Py_UNICODE_REPLACEMENT_CHARACTER) < 0)
goto errorexit;
}
if (errors == ERROR_IGNORE || errors == ERROR_REPLACE) {
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]