model-writtenrun 9748 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Heikki Linnakangas reported that CopyReadLineText() supplies only the first byte to mblen(), although GB18030 character-length detection examines two bytes, causing four-byte characters to be treated as two-byte characters #1.
- Heikki explained that this is harmless for COPY because each remaining pair is processed as another two-byte character, preserving recognition of delimiters, escapes and newlines #1.
- Heikki submitted comment updates documenting this behavior in copy.c and wchar.c, and reported finding no other callers using mblen() this way #1.
- Robert Haas responded with surprise but supplied no substantive patch review or testing evidence #2.
- Heikki committed the attached changes unchanged as a5be6e9a1d and confirmed completion in the final message, leaving no outstanding work identified in the thread #3.