Bug 485014 - Do not use .mo suffix for gencat message catalogs, they're not Gettext MO files
Summary: Do not use .mo suffix for gencat message catalogs, they're not Gettext MO files
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: man
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Ivana Varekova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-02-11 06:22 UTC by Dwayne Bailey
Modified: 2009-02-12 13:12 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-02-12 13:12:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dwayne Bailey 2009-02-11 06:22:46 UTC
Description of problem:

man installed man.mo in 
/usr/share/locale/%l/LC_MESSAGES/%N.mo

But these are not Gettext MO files but gencat files.

This causes problems for any tool wanting to read and manipulate Gettext MO files.

Version-Release number of selected component (if applicable):
man-1.6f

How reproducible:
[dwayne@localhost F-10]$ msgunfmt /usr/share/locale/cs/LC_MESSAGES/man.mo 
msgunfmt: file "/usr/share/locale/cs/LC_MESSAGES/man.mo" is not in GNU .mo format


Actual results:
These are not .mo files


Expected results:
They should not present themselves as .mo files


Additional info:
There doesn't seem to be a standard convention for suffixes in gencat files.  But in the actual man code they use mess.$lang.cat - I would suggest either dropping 1) man.cat or 2) simply 'man'

A fixes is simple:
1) man-1.6f/msgs/inst.sh - should not remove the .cat suffix
2) man-1.6f-loc.patch - should not refer to .mo but .cat
3) man.spec should move the files to man.cat instead of man.mo

Comment 1 Ivana Varekova 2009-02-12 13:12:38 UTC
Thanks. Fixed in man-1.6f-15.fc11.


Note You need to log in before you can comment on or make changes to this bug.