Tcl Library Source Code

Ticket Change Details
Login
Overview

Artifact ID: 8c48571d8acb6d0791e605f852fb6b30d91c29e4691cb625c630b795882b252a
Ticket: 4ff12e3abdbad86b99ec59f604632952cd4b44ab
fileutil::magic fails to identify mimetype
User & Date: aku 2018-05-17 20:03:12
Changes

  1. comment changed to:
    package require fileutil::magic::filetype
    fileutil::magic::filetype /Users/kevin/Desktop/dndtest.rb
    
    Based on inspection of the source code of the module, I expected the output to be something like:
    
        mime text/x-ruby
    
    but there's no output at all.
    
    Checking to see if the module is correctly installed, I run this command:
    
        fileutil::magic::filetype /Users/kevin/Downloads/tcllib-1.19/devdoc/devguide.html
    
    And I get this output:
    
        {{HTML document text}} {text html} {}
    
    So, it seems to be working as designed, at least in some instances. But others, such as script and text files, return no output. This seems to be a bug to me.
    
  2. icomment:
    Kevin, could you attach a small sample ruby file to the ticket which demos the problem ?
    
  3. login: "aku"
  4. mimetype: "text/plain"
  5. priority changed to: "6"
  6. title changed to: "fileutil::magic fails to identify mimetype"