Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 96acf7efef21da252d34798ce83a190597015f2e
Ticket: 3466099fffffffffffffffffffffffffffffffff
BOM in Unicode
User & Date: nijtmans on 2012-03-01 05:48:49
Changes

  1. closedate changed to: "2012-02-29T22:48:49"
  2. closer changed to: "nijtmans"
  3. icomment:
    Committed to core-8-4-branch, core-8-5-branch and trunk.
    
    The situation as described in the above reference, where
    the Tcl script file started with BOM, now works as expected.
    
    I don't thing that putting a BOM as start in an UTF-8 file
    is wrong, see http://unicode.org/faq/utf_bom.html
    
    Q: When a BOM is used, is it only in 16-bit Unicode text?
    A: No, a BOM can be used as a signature no matter how the Unicode text is transformed: UTF-16, UTF-8, or UTF-32. The exact bytes comprising the BOM will be whatever the Unicode character U+FEFF is converted into by that transformation format. In that form, the BOM serves to indicate both that it is a Unicode file, and which of the formats it is in.
    
    Now Tcl conforms to that, which it never did.
    
    
  4. login: "nijtmans"
  5. mimetype: "text/plain"
  6. status changed to: "Closed"
  7. username: "nijtmans"