I use a system-wide
pl_PL.UTF-8 encoding. However, most manual pages that have Polish versions are in the 8-bit ISO-8859-2 encoding. In the end I came up with this setup:
Code: Select all
NROFF /usr/bin/nroff -Tlatin1 -c -mandoc -p
COL /usr/bin/iconv -f iso-8859-2 -t utf-8
This effectively tells man not to clobber anything with NROFF, and convert 8-bit encoding to the UTF-8 one, using a non-standard COL program.
An ugly hack, but it works for me. And it is ugly, because it shouldn't be needed - but as of today man and groff don't support UTF-8 locales for their output very well. Additionally, this is also a system-wide setting (bad!) and completely misses the situation where there are many users on the system that use different locales (think: multiuser server).
If you're inclined to try this, be sure to specify the right input locale instead of "iso-8859-2" in the iconv invocation. Good luck!
