Skip to content

Commit 503444a

Browse files
committed
chore: fix prettier formatting on changeset
1 parent 8f405cb commit 503444a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.changeset/fix-stdio-utf8-chunk-boundary.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
'@modelcontextprotocol/sdk': patch
33
---
44

5-
Fix UTF-8 corruption in `ReadBuffer` when multi-byte sequences (em-dash, emoji) split across stdio chunk boundaries. `Buffer.toString('utf8', ...)` decodes slices eagerly and produces replacement characters when a multi-byte sequence is split between chunks. Replaced with `TextDecoder` in streaming mode, which carries partial bytes forward until the sequence completes.
5+
Fix UTF-8 corruption in `ReadBuffer` when multi-byte sequences (em-dash, emoji) split across stdio chunk boundaries. `Buffer.toString('utf8', ...)` decodes slices eagerly and produces replacement characters when a multi-byte sequence is split between chunks. Replaced with
6+
`TextDecoder` in streaming mode, which carries partial bytes forward until the sequence completes.

0 commit comments

Comments
 (0)