Project:Book made simple
Version:6.x-2.x-dev
Component:User interface
Category:bug report
Priority:normal
Assigned:MarcElbichon
Status:closed (fixed)

Issue Summary

I've processed a lot of pot files these days and the bookmadesimple fr.po was the only within 50 modules with this issue.

gettext tools (e.g. msgcat) end with following error when trying to parse the file:

# msgcat fr.po
fr.po:1:2: syntax error
msgcat: found 1 fatal error

After many many checks i finally found out, there are hidden markers of 3 bytes (ef bb bf, some editors use this sometimes to mark utf-8 encoding) at the very beginning of the file.

$ head -n 1 BookMadeSimple.pot | hexdump -C
00000000  23 20 24 49 64 3a 20 42  6f 6f 6b 4d 61 64 65 53  |# $Id: BookMadeS|
00000010  69 6d 70 6c 65 2e 70 6f  74 2c 76 20 31 2e 31 2e  |imple.pot,v 1.1.|
00000020  34 2e 33 20 32 30 30 39  2f 30 38 2f 32 37 20 30  |4.3 2009/08/27 0|
00000030  37 3a 30 37 3a 35 35 20  6d 61 72 63 65 6c 62 69  |7:07:55 marcelbi|
00000040  63 68 6f 6e 20 45 78 70  20 24 0a                 |chon Exp $.|
0000004b
$ head -n 1 fr.po | hexdump -C
00000000  ef bb bf 23 20 24 49 64  3a 20 66 72 2e 70 6f 2c  |# $Id: fr.po,|
00000010  76 20 31 2e 31 2e 34 2e  32 20 32 30 30 39 2f 30  |v 1.1.4.2 2009/0|
00000020  38 2f 30 34 20 32 31 3a  32 32 3a 32 38 20 73 63  |8/04 21:22:28 sc|
00000030  6f 74 74 72 69 67 62 79  20 45 78 70 20 24 0a     |ottrigby Exp $.|
0000003f

Please remove the bytes as they automated break gettext (.po files) tool handling.

Comments

#1

Assigned to:Anonymous» MarcElbichon
Status:active» fixed

See attachement

AttachmentSize
fr.po 5.14 KB

#2

@miro_dietiker did #1 fix the issue?

@MarcElbichon should this be committed?

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.