Bug 1143757 - " \" is not escaped in POT/PO files
Summary: " \" is not escaped in POT/PO files
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 4.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 4.2
Assignee: Jeff Fearn 🐞
QA Contact: Ruediger Landmann
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-17 23:03 UTC by Yuko Katabami
Modified: 2014-09-29 04:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-29 03:47:10 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
CPAN 99069 0 None None None Never

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.


Note You need to log in before you can comment on or make changes to this bug.