Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 98df5c8df39ae4ad4e2ffd2151606360f684a572
Ticket: 3466099fffffffffffffffffffffffffffffffff
BOM in Unicode
User & Date: nijtmans on 2012-03-02 05:49:02
Changes

  1. icomment:
    Re-opening, because one situation is not handled yet,
    which can cause problems. On Windows, normally the
    system encoding is cp1252 (actually cp1250-1258). The
    previous part only handles the situation that the encoding
    is set to utf-8 explicitely.
    
    However, the BOM indicates that the remaining should be
    handled as utf-8, regardless of the system encoding.
    
    Therefore, I created a new branch bug-3466099,
    meant as an experiment (again). What it does:
    If the system encoding is cp125[0-8] or identity
    and the file starts with a BOM, the BOM is
    skipped and the encoding is automatically
    set to utf-8 while reading the remaining of the file
    
    This experiment is committed in branch
    bug-3466099. Remarks more than welcome.
    
    Test cases are source-2.8 up to source-2.17 for
    the different system encodings.
    
    Specific question. Is there any other encoding
    commonly encountered on Windows, which should
    be handled the same way?
    
    Regards,
               Jan Nijtmans
    
    
  2. login: "nijtmans"
  3. mimetype: "text/plain"
  4. resolution changed to: "Accepted"
  5. status changed to: "Open"
  6. username: "nijtmans"