[Patches] [ python-Patches-1475523 ] patch fixing #1448060 (gettext.py bug)

SourceForge.net noreply at sourceforge.net
Thu Jul 27 06:46:47 CEST 2006


Patches item #1475523, was opened at 2006-04-24 06:09
Message generated for change (Settings changed) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1475523&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: None
Status: Open
Resolution: None
>Priority: 8
Submitted By: Thenault Sylvain (syt)
Assigned to: Martin v. Löwis (loewis)
Summary: patch fixing #1448060 (gettext.py bug)

Initial Comment:
Here is a patch for the bug described in
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1448060&group_id=5470

It follows the latest Martin followup as I understand
it. I'm not sure if multi-lines field handling should
be totally discarded while reading metadata headers (as
implemented), or if it should only be discarded for the
content-type and plural-forms header. If one think this
patch isn't correct, please comment so I can fix it.

Notice that if the second solution was intended, lines
such as 

"#-#-#-#-#  fr.po  #-#-#-#-#\n"

inserted by msgcat/msgmerge will have to be treated
differently (i.e. multi-lines support but skip lines
begining with a #).

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2006-07-17 00:45

Message:
Logged In: YES 
user_id=21627

The patch is wrong; it breaks the existing test case
WeirdMetadataTest. I think the "just a single line" rule
should be restricted to Plural-Forms; not sure whether it
should apply to content-type also (but why not).

I'll attach another patch that adds a test case.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1475523&group_id=5470


More information about the Patches mailing list