Tcl Library Source Code
Ticket Change Details
Not logged in
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2018 Conference, Houston/TX, US, Oct 15-19
Send your abstracts to tclconference@googlegroups.com
or submit via the online form by Aug 20.
Overview

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

  1. Change comment 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. Change icomment to:

    Kevin, could you attach a small sample ruby file to the ticket which demos the problem ?

  3. Change login to "aku"
  4. Change mimetype to "text/plain"
  5. Change priority to "6"
  6. Change title to "fileutil::magic fails to identify mimetype"