On Fri, Mar 13, 2009 at 01:48:05PM +0100, Raphael Hertzog wrote:
> On Fri, 13 Mar 2009, Colin Watson wrote:
> > Hmm. This is a very difficult tradeoff to make. Right now, man
> > intentionally does this:
> > 
> >         /* Try comparing based on language. Assuming we've got the right
> >          * name, then it's better to display a page in the user's preferred
> >          * language than a page from a better section.
> >          */
> > 
> > Are you saying that it would in fact be better to display a manual page
> > in a language that man doesn't know the user will be able to read?
> 
> Yes. But we can put an intelligent limit to this logic however (although
> I'm not sure it's needed as it goes counter to the usual expected
> behaviour of man).

Well, TBH I don't think there's a clear answer to whether man should
give you a page in your preferred language or a page from the best
possible section. I suspect the answer you get from users as to which
they'll prefer will vary depending on how well they can read English.

> If the english manual page is in section 1 or 8 (or any other section
> documenting executables), then it should get priority over a localized
> page documenting something else than an executable (whose section has a
> lower priority).

Hmm. I wonder if this would most easily be fixed along with
http://bugs.debian.org/505465; while implementing that I'd need to add
intelligence related to whether the page being asked for is an
executable and which sections relate to executables anyway, and looking
it up on $PATH doesn't add much complexity there.

-- 
Colin Watson                                       [[email protected]]



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to