ocaml / opam

opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.
https://opam.ocaml.org
Other
1.21k stars 348 forks source link

Set console to UTF-8 on Windows #5969

Closed kit-ty-kate closed 1 month ago

kit-ty-kate commented 1 month ago

After writing https://github.com/dbuenzli/cmdliner/issues/185#issuecomment-2125463770 I was wondering if we could do what https://github.com/ocaml/ocaml/pull/1408 does ourselves and call SetConsoleOutputCP(CP_UTF8) in a new Windows C stub function called at the beginning of the program.