Hi! On Void Linux, we recently re-enabled installation of localized man pages. However, man(1) (version 1.14.5) behaves rather strangely on such occasions. I have attached a tarball with the file structure I'm currently diagnosing this issue in. The file list inside it is as such: usr/share/man/ca/man1/kate.1 usr/share/man/pt_BR/man1/kate.1 usr/share/man/man1/kate.1 For starters, the default /etc/man.conf is as seen below: manpath /usr/share/local/man manpath /usr/share/man In this initial case, `man kate` will open /usr/share/man/ca/man1/kate.1, after, according to strace(1), calling access(2) on the other files as well: chdir("/usr/share/man") = 0 [...] access("ca/man1/kate.1", R_OK) = 0 access("pt_BR/man1/kate.1", R_OK) = 0 access("man1/kate.1", R_OK) = 0 In my opinion, this isn't intended behavior, since I don't have anything (such as a LANG environment variable) that would indicate any preference for the ca man page. If I add a `manpath /usr/share/man/pt_BR` entry to the tail of man.conf, the same thing still happens; it's only if I add it somewhere before the `manpath /usr/share/man` entry that I get the pt_BR man page. Interestingly, applying the patches discussed in [1] was enough for this issue not to present itself. However, given that the problems discussed there didn't seem at all related to my current issue, I don't know for sure that the fix wasn't accidental; if it was, I would be interested in getting a proper fix, and if it wasn't, I'd like to be sure of it. [1] https://github.com/void-linux/void-packages/issues/9868 Furthermore, as a feature request (that I would be willing to work on), I believe it might be interesting to make man(1) smart enough to use man pages from $manpath/$locale, where $locale could be $LANG itself and/or $LANG stripped of the '.UTF-8' suffix (or even turned from 'll_CC' to 'll'). Finally, I would like to ask about the possibility of a mandoc release; we are already carrying some patches for essential fixes, including the ones from [1]. If there's anything that I could help with for that, please let me know. Happy new year, Érico