Commit eae3aba
committed
fix: use UTF-8 charset in StdioClientTransport stream readers
InputStreamReader defaults to the system charset, which can corrupt
MCP messages on non-UTF-8 JVMs. Use StandardCharsets.UTF_8 explicitly
in both startInboundProcessing and startErrorProcessing, consistent
with the outbound writer which already uses UTF-8.
Fixes #898
Signed-off-by: Gorre Surya <suryateja.g13@gmail.com>1 parent c09ee67 commit eae3aba
1 file changed
Lines changed: 3 additions & 2 deletions
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
| 250 | + | |
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
| |||
0 commit comments