Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d603c8d4b50d880d18ddc7971773159637ff4ffe
Ticket: c7aa14ffdd2507dd6bdd77baeec952676076f35b
Linux C locale and filenames
User & Date: jan.nijtmans on 2016-04-25 09:45:29
Changes

  1. icomment:
    The reason for this is that [glob] returns a list of files, not a filename, that's why the '\' needs to be inserted to form a valid Tcl list. So, your code should be (assuming you want to open the first file in the glob list):
    
    % set name [lindex [glob test*] 1]
    test{
    % set fh [open $name r]
    file3
    
  2. login: "jan.nijtmans"
  3. mimetype: "text/plain"