Bug 1020570

Summary: UTF-8 -- "Revision History" <title> garbled in translated revision histories in non-Latin scripts
Product: [Community] Publican Reporter: Ruediger Landmann <rlandman>
Component: publicanAssignee: Jeff Fearn 🐞 <jfearn>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: futureCC: aigao, rlandman
Target Milestone: 3.2   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-19 02:46:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ruediger Landmann 2013-10-18 00:48:48 UTC
Description of problem:
the Revision_History.xml file created by Publican update_po contains a garbled <title> in languages with a non-Latin script.

Version-Release number of selected component (if applicable):
observed in publican-3.9.9-0.fc19.t11.noarch and publican-3.9.9-0.el6eng.t7.noarch

How reproducible:
100%

Steps to Reproduce:
1. Choose a book without an ru-RU translation (or delete the ru-RU/Revision_History.xml file from a book)
2. Run update_pot and update_po --langs ru-RU
3. Examine ru-RU/Revision_History.xml

Actual results:
Gibberish: <title>ÐÑÑоÑÐ¸Ñ Ð¿ÐµÑеизданиÑ</title>

Expected results:
Cyrillic text: <title>История изменений</title>

Additional info:

Comment 2 Jeff Fearn 🐞 2013-10-18 02:21:27 UTC
Please supply a link to something I can test with.

Comment 3 HSS Product Manager 2013-10-18 02:27:31 UTC
HSS-QE has reviewed and declined this request. QE for this bug will be handled by IED.

Comment 4 Ruediger Landmann 2013-10-18 04:13:01 UTC
(In reply to Jeff Fearn from comment #2)
> Please supply a link to something I can test with.

You can test this one with the PUG, since it doesn't have any translations in languages with non-Latin scripts (so the <translation>/Revision_History.xml file will be newly generated when you run update_po). 

I'll also find a book with a suitable translation so you can test what happens when the action touches a language with a translated Revision_History.xml

Comment 6 Jeff Fearn 🐞 2013-10-18 05:19:38 UTC
To ssh://git.fedorahosted.org/git/publican.git
   a7c63d1..181eacd  devel -> devel

Comment 7 Ruediger Landmann 2013-10-19 00:14:11 UTC
fixed in publican-3.9.9-0.fc19.t14.noarch