flac icon indicating copy to clipboard operation
flac copied to clipboard

flac 1.5 changes code page

Open Dimmitrius opened this issue 7 months ago • 2 comments

flac 1.5 changes the code page in console (Win10 x64, CP866) after execution. The previous version did not do this.

Dimmitrius avatar May 05 '25 16:05 Dimmitrius

This probably happened with PR #714. I wasn't aware SetConsoleOutputCP apparently does a permanent change, not just for the process involved. Note to self: Maybe changing to UTF-16 output would help: https://learn.microsoft.com/en-us/windows/console/console-code-pages

ktmf01 avatar Jun 08 '25 18:06 ktmf01

Or query current code page with GetConsoleOutputCP and restore it on exit.

vrubleg avatar Aug 27 '25 21:08 vrubleg