Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d60027716af86b3a7facfdc1c3ff2b506ff16290
Ticket: 2d526082e3edd4340cde0659dab59abe27c579fb
file mtime fails with odd filename
User & Date: anonymous on 2016-04-19 11:19:59
Changes

  1. icomment:
    More information:
    
    could not read "/home/bll/sources/ballroomdj/test.dir/music dir/2NE1-í%88¬ì%95 ë%8B%88ì%9B%90-Fire-Street-Version-ChaCha-32bpm.mp3": no such file or directory
        while executing
    "file mtime $ffn"
        (procedure "masterfile::loadfromfile" line 173)
        invoked from within
    
    I tried the below, but the filename created on disk is different and does
    not match the problem filename.
    
    #!/usr/bin/tclsh
    
    set fn "2NE1-\xed%88\xac\xec%95 \xa0\xeb%8B%88\xec%9B%90-Fire-Street-Version-ChaCha-32bpm.mp3"
    set fh [open $fn w]
    close $fh
    set flist [glob . *]
    puts "flist:$flist"
    foreach {f} $flist {
      if { $f eq "." || $f eq "t.tcl" || $f eq "t.tcl~" } {
        continue
      }
      puts "tm:[file mtime $f]"
    }
    
    This ticket might be invalid -- I think there's an encoding problem.
    wget is supposed to use the system encoding, but from the above,
    it looks like it may be
    using something else.
    
  2. login: "anonymous"
  3. mimetype: "text/plain"
  4. username: "[email protected]"