Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: eff8b2c59ac27f2b83d9d2dd1c883853e2cba0ab
Ticket: 652723ffffffffffffffffffffffffffffffffff
Inconsistent treatment of encoding names
User & Date: mic42 on 2002-12-12 15:29:26
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I noticed a slight inconsistence in the way [encoding
    names[ and fconfigure $fid  -encoding work together.
    
    [encoding names] returns all encoding names in lowercase.
    
    fconfigure $fid -encoding encodingname 
    
    accepts most encoding names in lower _and_ upper or
    mixedcase. Only the following are excluded from this
    special behaviour:
    
    UTF-8
    UNICODE
    IDENTITY
    
    Test script:
    
    foreach enc [encoding names] {
       catch {fconfigure stdout -encoding $name} msg
       append text $msg
       catch {fconfigure stdout -encoding \
         [string toupper $name]} msg
       append text $msg
    }
    set text
    
    Tested on win2k,sp2
    
    Michael Schlenker
    
    
  4. foundin changed to: "obsolete: 8.4.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "mic42"
  9. subsystem changed to: "16. Commands A-H"
  10. title changed to: "Inconsistent treatment of encoding names"
  11. type changed to: "Bug"