Bug 1143757

Summary: " \" is not escaped in POT/PO files
Product: [Community] Publican Reporter: Yuko Katabami <ykatabam>
Component: publicanAssignee: Jeff Fearn 🐞 <jfearn>
Status: CLOSED CURRENTRELEASE QA Contact: Ruediger Landmann <rlandman>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.2CC: aigao, ccheng, rlandman
Target Milestone: 4.2   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-29 03:47:10 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 Yuko Katabami 2014-09-17 23:03:17 UTC
Description of problem:
when running publican update_pot command, it generates pot files which contains invalid escape sequence \.

Version-Release number of selected component (if applicable): 4.2.2


How reproducible: 100%


Steps to Reproduce:
1. Generate pot files by running "publican update_pot" command
2. Try push the project to zanata
3. Zanata push fails where the file contains invalid escape sequence \

Actual results:
pot contains invalid escape sequence \

Expected results:
It should generate pot files without invalid escape sequence \

Additional info:
Reported this issue to Jeff via IRC already

Comment 1 Yuko Katabami 2014-09-17 23:06:40 UTC
One example file affected by this bug:

http://pastebin.test.redhat.com/234747


[ykatabam@ykatabam pot]$ msgfmt -c -v app_cheat_sheet.pot 
app_cheat_sheet.pot:52:139: invalid control sequence
app_cheat_sheet.pot:61:152: invalid control sequence
app_cheat_sheet.pot:100:88: invalid control sequence
app_cheat_sheet.pot:102:63: invalid control sequence
app_cheat_sheet.pot:111:89: invalid control sequence
app_cheat_sheet.pot:113:63: invalid control sequence
app_cheat_sheet.pot:122:99: invalid control sequence
app_cheat_sheet.pot:124:45: invalid control sequence
app_cheat_sheet.pot:126:56: invalid control sequence
app_cheat_sheet.pot:135:97: invalid control sequence
app_cheat_sheet.pot:137:46: invalid control sequence
app_cheat_sheet.pot:168:92: invalid control sequence
app_cheat_sheet.pot:179:90: invalid control sequence
app_cheat_sheet.pot:290:89: invalid control sequence
app_cheat_sheet.pot:316:89: invalid control sequence
app_cheat_sheet.pot:325:90: invalid control sequence
msgfmt: found 16 fatal errors

Comment 3 Yuko Katabami 2014-09-28 23:48:11 UTC
I tested with the combination of perl-Locale-PO-0.24-2.el6eng.noarch and publican-4.2.2-2.el6eng.noarch. however it produced the same error
"Invalid escape sequence: \" when I attempted zanata push.

Comment 4 Jeff Fearn 🐞 2014-09-29 00:14:45 UTC
(In reply to Yuko Katabami from comment #3)
> I tested with the combination of perl-Locale-PO-0.24-2.el6eng.noarch and
> publican-4.2.2-2.el6eng.noarch. however it produced the same error
> "Invalid escape sequence: \" when I attempted zanata push.

You need to tell us what you did to test it.

Comment 10 Jeff Fearn 🐞 2014-09-29 03:47:10 UTC
This patch has been applied to internal build. 

https://bugzilla.redhat.com/show_bug.cgi?id=1147332 has been opened to apply same to Fedora builds.