[Bug 332861] Re: gnome-subtitles corrupts file when saving in UTF-8

Pedro Castro mail at pedrocastro.org
Sun Feb 22 12:58:12 UTC 2009


This is actually a feature rather than a bug. When saving in Unicode, a
BOM (byte order mark) is added to the file. This is standard Unicode
procedure.

While in some UTFs the BOM is used to distinguish from little and big endian machines, the BOM is used in UTF-8 as a
signature. The UTF-8 specification explicitly allows its use, and only prohibits it where the character coding is known beforehand. This is not the case, as subtitle files are plain text and their formats don't specify character codings, so the BOM has its use there.

-- 
gnome-subtitles corrupts file when saving in UTF-8
https://bugs.launchpad.net/bugs/332861
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list