Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2304fa4e875109589a00cb7ee487a80ee4ff60b1
Ticket: c7aa14ffdd2507dd6bdd77baeec952676076f35b
Linux C locale and filenames
User & Date: anonymous on 2016-04-25 09:16:46
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Tested on RHEL 6.5 (Linux 2.6.32-431.el6.x86_64) and Tcl 8.5.7.
    
    From the Linux command line with LANG set to C I can create and manipulate the following file in a bash shell:
    
    % echo "Test it" > 'test{'
    % cat 'test{'
    
    However if I start tclsh the following happens:
    
    % set name [glob test*]
    test\{
    % set fh [open $name r]
    couldn't open "test\{": no such file or directory
    
    The encoding seems to have been defaulted to iso8859-1 but this seems to mean that certain files cannot be accessed reliably in Tcl.
    
    % encoding system
    iso8859-1
    
  5. foundin changed to: "8.5.16"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "6a3810e551109494cf10711fdd242d10cbfd3a32"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to: "Linux C locale and filenames"
  16. type changed to: "Bug"