Page MenuHomeFreeBSD

Allow man(1) to search translated manpages in pure $man_lang subdirectory
AcceptedPublic

Authored by fluffy on Tue, Mar 10, 10:23 PM.
Referenced Files
F151028783: D55805.id.diff
Sun, Apr 5, 1:18 PM
Unknown Object (File)
Fri, Apr 3, 6:09 PM
Unknown Object (File)
Sun, Mar 29, 11:55 PM
Unknown Object (File)
Sat, Mar 28, 3:40 PM
Unknown Object (File)
Tue, Mar 24, 4:06 PM
Unknown Object (File)
Sun, Mar 22, 8:44 PM
Unknown Object (File)
Thu, Mar 19, 6:47 AM
Unknown Object (File)
Thu, Mar 19, 3:58 AM
Subscribers

Details

Reviewers
fernape
Group Reviewers
doceng
Summary

Currently our man(1) utility search manages only in $lang_country.charset, $lang.charset and, as failover, in $en.charset which is historical behavior.
But nowadays most of ported software uses only $lang subdirectories for translated manpages instead of use full locale notation, for example, share/ja/man1, share/de/man1, share/ru/man1. In such cases, our man(1) utility cannot find any translated manpages and silently fallback to english version.

Add $man_lang in search path allows man(1) search and use translated manpages under historical and modern path traditions

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

usr.bin/man/man.1
245

This would need to be added to the list directly above this that says "If set, man will search for

locale specific manual pages using the following logic:"
fernape added a subscriber: fernape.

LGTM, provided the comment is addressed :-)

Thanks!

usr.bin/man/man.1
245

Yes, this needs to be added. Otherwise LGTM.

This revision is now accepted and ready to land.Tue, Mar 17, 7:21 AM