Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a1b0a9e374c69180bf2ab54d983ccc0a2e67d51e
Ticket: 956433ffffffffffffffffffffffffffffffffff
[glob] fails conversion to internal encoding
User & Date: dgp on 2004-05-19 02:46:59
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    On a Mac OS X system:
    
    % encoding system
    utf-8
    % glob *
    no files matched glob pattern "*"
    % set s \u00e9
    é
    % string bytelength $s
    2
    % close [open $s w]
    % set f [glob *]
    é
    % string bytelength $f
    3
    % binary scan [encoding convertto identity $s] c*
    bytes; set bytes
    -61 -87
    % binary scan [encoding convertto identity $f] c*
    bytes; set bytes
    101 -52 -127
    
    I start with the character \u00E9 in
    its 2-byte internal encoding: xC3 xA9
    
    Write a file with that name, and retrieve
    the file name with [glob] and I get 
    a different representation:  x65 xCC x81
    which is our internal encoding for 
    \u0065 \u0301
    
    % format %s \u00E9
    é
    % format %s \u0065\u0301
    é
    
    those outputs look the same in the
    interactive shell, but not in this
    browser text entry.
    
  4. foundin changed to: "obsolete: 8.5a1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "37. File System"
  10. title changed to: "[glob] fails conversion to internal encoding"
  11. type changed to: "Bug"