bugGNU gettext - Bugs: bug #18345, msgfmt fails with UTF-8 encoded...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #18345: msgfmt fails with UTF-8 encoded files start start with a BOM

Submitter:  None
Submitted:  Wed 22 Nov 2006 09:55:35 AM UTC
   
 
Category:  Translator tools Severity:  3 - Normal
Item Group:  None Status:  Not a Bug
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed

Wed 29 Aug 2007 10:52:55 PM UTC, comment #1: 

The PO file format has a means for specifying the encoding
(through the 'charset' field in the header entry, see
http://www.gnu.org/software/gettext/manual/gettext.html#Header-Entry)

Therefore, an UTF-8 BOM must*not be used in these files, says
the RFC that defines UTF-8: see
http://www.faqs.org/rfcs/rfc3629.html section 6.

Therefore your PO file starting with an UTF-8 BOM is invalid.

Just like XML files starting with an UTF-8 BOM are invalid.

Bruno Haible <haible>
Group administrator
Wed 22 Nov 2006 09:55:35 AM UTC, original submission:  

The msgfmt utility fails when the .po file it is passed is encoded in UTF-8 and starts with a UTF-8 Byte-Order-Mark.

The BOM bytes are the first 3 bytes of the file and occur before the 'Content Type' header has had a chance to set the correct encoding. I think this might need special handling.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-26 haible CategoryNone Translator tools
    2008-03-06 haible StatusInvalid Not a Bug
    2007-09-30 haible Open/ClosedOpen Closed
    2007-09-02 haible Assigned toNone haible
    2007-08-29 haible StatusNone Invalid

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code