Le Vendredi 16 Juin 2006 00:05, Martin Vojčík a écrit :
> Hi, there is my updated slovak translation.
> And if there is place for Slovak language on server, i can translate
> website www.wormux.org  into slovak. And keep it updated.
Commited: revision 840.

I lost 30 minutes to understand the error message from msgfmt:
"parser error" (at line 1, first character)

vim editor doesn't show any differences.

After long minutes, i used an hexadecimal editor to compare two files byte per 
byte ...

The error was strange: three unusuals bytes were written at the beginning of 
the file: "0xef 0xbb 0xbf" ... Looks like UTF-8, so I used a converter UTF-8 
<=> number: 65279 ... What's the hell is that character? But hexadecimal 
notation gave me the solution: 0xFEFF! It's a fucking BOM!

BOM are used to specify endian (big endian or little endian) ... useless with 
UTF-8 encoding, but *needed* with UTF-16 encoding. The file sk.po is encoded 
in UTF-8, so I don't understand why it's there ...
http://www.unicode.org/faq/utf_bom.html#29

Ok. I removed this useless BOM and now sk.po compiles well.

Martin: Did you used notepad under Windows to edit the file? I know that 
notepad loves BOM ;-)

Haypo

_______________________________________________
Wormux-dev mailing list
Wormux-dev@gna.org
https://mail.gna.org/listinfo/wormux-dev

Répondre à