Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0b56039e324e67f647514f981de8b50a66c1b0ef
Ticket: 3466099fffffffffffffffffffffffffffffffff
BOM in Unicode
User & Date: nijtmans on 2012-02-19 22:27:37
Changes

  1. icomment:
    New attempt in bug-3466099 branch (threw away the old one)
    
    Tcl_FSEvalFileEx now throws away the BOM when it is the
    first character in the stream. If the encoding is set correctly
    (e.g. to UTF-8) this will work on Unix and Windows.
    Added test case source-2.7 to prove that. Advantage:
    no seek is needed, as in the previous implementation.
    So it is harmless for Tcl 8.4/8.5 as well.
    
    This could be improved by adding a new encoding
    named "", which is almost the same as the system
    encoding. The only difference is that, if the first
    characters of the stream is a BOM in any of the
    UTF-8 or UTF-16 forms it will swith to this
    encoding, otherwise it will behave exactly
    like the system encoding. I'll leave that
    for some other day (and for Tcl 8.6 only)
    
    
  2. login: "nijtmans"
  3. mimetype: "text/plain"
  4. resolution changed to: "Fixed"
  5. username: "nijtmans"