Tcl Library Source Code

View Ticket
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.
Ticket UUID: 4ff12e3abdbad86b99ec59f604632952cd4b44ab
Title: fileutil::magic fails to identify mimetype
Type: Bug Version: 2.0
Submitter: kevin_walzer Created on: 2018-04-25 02:36:26
Subsystem: fileutil :: magic Assigned To: pooryorick
Priority: 6 Severity: Critical
Status: Closed Last Modified: 2018-08-22 06:28:27
Resolution: Fixed Closed By: pooryorick
    Closed on: 2018-08-22 06:28:27
Description:
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.
User Comments: pooryorick added on 2018-08-22 06:28:27:

Fixed in [c48961ab8e97217b].


aku added on 2018-05-17 20:03:12:
Kevin, could you attach a small sample ruby file to the ticket which demos the problem ?

Attachments: