[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gettext] Header syntax

From: Jakub Wilk
Subject: [bug-gettext] Header syntax
Date: Wed, 5 Dec 2012 23:41:17 +0100
User-agent: Mutt/1.5.21 (2010-09-15)


Are header field names supposed to be case-insensitive, like RFC-822 ones? At least gettext-init treats them case-sensitively; on the other hand gettext runtime don't seem to care about field names at all. Python interface to GNU message catalogs[0] treat them case-insensitively. Which implementation is correct?

Is RFC-882-style folding of long fields allowed? I don't think this feature is useful for PO files, but I saw some headers parsers[0][1] that unfold fields.

I will likely have more questions reading the header syntax, as I'm writing a checker tool for PO/MO files[2]. Unfortunately, the existing documentation[3] is not detailed enough for my purposes.

[0] http://hg.python.org/cpython/file/ece75a3b/Lib/gettext.py#l260
[1] https://bitbucket.org/izi/polib/src/68e0e048/polib.py#cl-1317
[2] http://jwilk.net/software/i18nspector
[3] http://www.gnu.org/software/gettext/manual/html_node/Header-Entry.html

Jakub Wilk

reply via email to

[Prev in Thread] Current Thread [Next in Thread]