From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Mon, 19 Oct 2009 19:59:12 -0400 To: 9fans@9fans.net Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] file -m and charsets Topicbox-Message-UUID: 8bebf582-ead5-11e9-9d60-3106f5b1d025 i put a proposed change to file(1) on sources. new rules: 1. if -m is given, and the file is text/*, then while neither a. nulls or bad runes appear, or b. both latin1 and utf appear generate a histogram of the file if a or b hold, then promote to application/octet-stream. 3. -c, a flag of dubious utility, supresses charsets. this version of file is *not* compatable with marshal. but that's not a big job. i'll do it if these changes to file seem promising. - erik