Skip to content
Tcl Source Code History Of Ticket 652723ffffffffff
Login

History Of Ticket 652723ffffffffff

Artifacts Associated With Ticket 652723ffffffffff

  1. Ticket change [eff8b2c59a] (rid 109092) by mic42 on 2002-12-12 15:29:26:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "obsolete: 8.4.1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "mic42"
    9. subsystem initialized to: "16. Commands A-H"
    10. title initialized to: "Inconsistent treatment of encoding names"
    11. type initialized to: "Bug"
  2. Ticket change [dd1b4949f5] (rid 114598) by mic42 on 2002-12-12 22:30:27:

    1. priority changed to: "2"
  3. Ticket change [cabe1920ae] (rid 95411) by dkf on 2003-01-23 22:50:20:

    1. assignee changed to: "hobbs"
    2. icomment:
      Logged In: YES 
      user_id=79902
      
      This is platform-specific behaviour caused by the fact that 
      Windows does not (normally) treat files as having case 
      sensitive names.  Essentially, what happens is that whenever 
      you ask for a currently unknown encoding, Tcl tries to load 
      the appropriate encoding definition file from its library 
      directory (hunt around; I'm sure you can find it) and that 
      succeeds because Windows is just case-preserving, not 
      case-sensitive.  On the other hand, the only encodings that 
      we *guarantee* to support are those returned by [encoding 
      names], which is not really much more than the results of a 
      glob of that lib dir.
      
      Note that the encodings "utf-8", "unicode" and "identity" are 
      special, in that they are handled internally.  Indeed, those are 
      the encodings that Tcl actually uses for its internal string 
      handling.  Because they are handled internally, they have no 
      associated encoding files and any attempt to load (for 
      example) UNICODE.enc will fail.
      
      Jeff, would you agree with me that this is therefore an invalid 
      bug?
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. resolution changed to: "Invalid"
    6. subsystem changed to: "10. Objects"
    7. username: "dkf"
  4. Ticket change [4b0868909a] (rid 126628) by hobbs on 2003-01-26 04:24:52:

    1. closedate changed to: "2003-01-25T21:24:52"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      Donal is correct.  In any case, encoding names should be 
      considered the reference for names available.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "hobbs"