Bug 190974 - po2xml: endless loop on empty para tag
Summary: po2xml: endless loop on empty para tag
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-28 23:12 UTC by Frans Pop
Modified: 2009-06-05 00:58 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
XML file that shows the issue (257 bytes, text/xml)
2009-04-28 23:13 UTC, Frans Pop
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frans Pop 2009-04-28 23:12:18 UTC
Version:           4.2.2 (using KDE 4.2.2)
OS:                Linux
Installed from:    Debian testing/unstable Packages

If the source XML file contains an empty <para> tag, po2xml from KDE 4.2.2 will end up in an endless loop: the warning "found empty tag para" is printed endlessly.

This is a regression as the version from KDE 3.5 handled that situation correctly: it would print the warning once and continue to generate a correct translated XML file.

I'll attach an XML file that reproduces the behavior with the following command sequence:
$ xml2pot test.xml >test.pot
$ mv test.pot test.po
$ po2xml test.xml test.po >/dev/null
Comment 1 Frans Pop 2009-04-28 23:13:47 UTC
Created attachment 33200 [details]
XML file that shows the issue
Comment 2 Frans Pop 2009-04-29 17:58:17 UTC
Looks like this may just be some weird compilation or library issue in Debian. After rebuilding the kdesdk source package myself I can no longer reproduce the bug.

Also, looking at the changes between the 3.5 and the 4.2.2 versions I cannot see any obvious reason for the issue.
Comment 3 Frans Pop 2009-06-05 00:58:51 UTC
The problem resolved itself with the upload of kdesdk 4.2.4 to Debian unstable.