mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 15:10:20 -06:00
When the encoding is not specified, open() may choose an encoding based on the locale in use. That encoding may have no relationship to the encoding of the file being opened. Use the locale from the document settings instead, which should better match the file's encoding. Fixes: #24679