Fco Javier Lopez Perez wrote:
> dh_installman does not support 3-letter locale codes.
> ISO 639-3 define locale codes with 3-letters.
>
> Executing dh_installman --language=que  debian/myprogram.que.8
>
> dh_installman parses the manpage filename in line 150 with a regex.
>
> Exactly, the line is   
> ($langcode)=$basename=~m/.*\.([a-z][a-z](?:_[A-Z][A-Z])?)\.(?:[1-9]|man)/;
>
> and should be:
>
> ($langcode)=$basename=~m/.*\.([a-z]{2,3}(?:_[A-Z][A-Z])?)\.(?:[1-9]|man)/;

I'm a bit worried about breaking backwards compatability here. If a
package has an existing file with a name like foo.bar.1, dh_installman
currently installs it to /usr/share/man/man1/foo.bar.1. With this change
it would be installed as foo.1 in the "bar" locale.

This problem already exists for pages with names like foo.pl.1, (which
could be perl or Polish). Packages using dh_installman have workarounds
if it does the wrong thing for those pages.

I think I need to defer this change to the next compatability level, v9,
which will be implemented after the release of lenny.

In the meantime, dh_installman --language=que debian/myprogram.que.8
should work. What doesn't work is dh_installman with no --language...

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to