[Po4a-devel] [patch] PO headers inconsistency

intrigeri intrigeri at boum.org
Fri Jul 30 11:12:45 UTC 2010


Hi,

there is a tiny inconsistency in the way po4a writes PO headers.

When it creates a PO file, it writes in there:

    "Content-Transfer-Encoding: ENCODING"

... on the other hand, at other times, e.g. when updating a PO file,
this header field is replaced by:

    "Content-Transfer-Encoding: ENCODING\n"

This is probably only annoying for VCS repositories history, e.g. when
using a multi-lingual ikiwiki[1] thanks to the po plugin[2] I wrote,
that heavily uses po4a.

In this case, this tiny inconsistency triggers a double commit of PO
files when a page is added to the wiki. This bug was reported by Joey
Hess:

    http://ikiwiki.info/bugs/po:_double_commits_of_po_files/

The attached one-line patch fixes this "bug". It would be pretty nice
if it was applied on time to be shipped in Squeeze.

[1] http://ikiwiki.info
[2] http://ikiwiki.info/plugins/po/

Bye, thanks for po4a!
-- 
  intrigeri <intrigeri at boum.org>
  | GnuPG key @ https://gaffer.ptitcanardnoir.org/intrigeri/intrigeri.asc
  | OTR fingerprint @ https://gaffer.ptitcanardnoir.org/intrigeri/otr-fingerprint.asc
  | Did you exchange a walk on part in the war
  | for a lead role in the cage?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: po-header-consistency.diff
Type: text/x-diff
Size: 526 bytes
Desc: patch
URL: <http://lists.alioth.debian.org/pipermail/po4a-devel/attachments/20100730/1e8a3534/attachment-0001.diff>


More information about the Po4a-devel mailing list