Skip to content

No documentation for setLocaleEncoding

Summary

setLocaleEncoding lacks any documentation: https://hackage.haskell.org/package/base-4.16.0.0/docs/GHC-IO-Encoding.html#v:setLocaleEncoding

I used to assume that invoking setLocaleEncoding utf8 is sufficient to print UTF-8 to stdout, but seems it is not the case on Windows. E. g., code-page resorts to calling setConsoleCP.

Proposed improvements or changes

It would be great to explain the effect of setLocaleEncoding in documentation and mention best practices with regards to Windows support.

CC @RyanGlScott on behalf of code-page.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information