The llama.cpp project released build b10275, which fixes a character encoding issue on Windows where accented characters were silently lost. The update ensures that text from child processes writing in the OEM code page is correctly decoded to UTF-8 before reaching the JSON layer.

  • Resolves an issue where invalid bytes replaced accented output due to non-UTF-8 OEM code pages on Western Windows installs.
  • Uses MB_ERR_INVALID_CHARS to return text untouched instead of emitting replacement characters when a wrong code page is detected.
  • Prevents double-decoding by passing through text that already decodes as UTF-8.
  • Drops incomplete trailing sequences before validation to handle streamed chunks ending in the middle of multi-byte characters.

This fix preserves special characters in tool outputs, ensuring accurate data handling for users on Windows systems.