Bug 54861 - pot file header generated by pygettext is incorrect
Summary: pot file header generated by pygettext is incorrect
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: python2
Version: 7.3
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Mihai Ibanescu
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2001-10-21 21:45 UTC by Christian Rose
Modified: 2007-04-18 16:37 UTC (History)
1 user (show)

Clone Of:
Last Closed: 2004-08-31 13:49:50 UTC

Attachments (Terms of Use)

Description Christian Rose 2001-10-21 21:45:22 UTC
The pygettext.py script generates incorrect pot file headers.

First of all, it does not add a POT-Creation-Date (which is very much
needed to determine how "fresh" a pot file is).

Second, the PO-Revision-Date is of the wrong format (it should be as in the
output of `date +"%Y-%m-%d %H:%M%z"').

Comment 1 Trond Eivind Glomsrxd 2001-10-26 16:06:32 UTC
The pygettext in python 2.2 is slightly different - I'll need to check if the
problem is still around.

Comment 2 Christian Rose 2002-06-08 23:08:55 UTC
This faulty pot file header problem seems to still be around (see the current
pot file for redhat-logviewer).

Comment 3 Mihai Ibanescu 2002-10-22 16:22:45 UTC
Patching pygettext is not exactly difficult, it would be nice if the upstream
python maintainers would accept the patch as well.

Comment 4 Mihai Ibanescu 2004-08-31 13:49:50 UTC
Seems to be fixed in python 2.3.4"

"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\\n"

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