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

Submitted by:  None
Submitted on:  Wed 22 Nov 2006 09:55:35 AM UTC  
 
Category: Translator toolsSeverity: 3 - Normal
Item Group: NoneStatus: Not a Bug
Privacy: PublicAssigned to: Bruno Haible <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 mustnot* 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>
Project AdministratorIn charge of this item.
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

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 26 Nov 2016 11:40:05 PM UTChaibleCategoryNone=>Translator tools
    Thu 06 Mar 2008 02:04:27 AM UTChaibleStatusInvalid=>Not a Bug
    Sun 30 Sep 2007 11:24:01 PM UTChaibleOpen/ClosedOpen=>Closed
    Sun 02 Sep 2007 10:50:13 AM UTChaibleAssigned toNone=>haible
    Wed 29 Aug 2007 10:52:55 PM UTChaibleStatusNone=>Invalid

    Back to the top


    Powered by Savane 3.1-cleanup1