From owner-freebsd-bugs Tue Oct 29 12:10:03 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA20384 for bugs-outgoing; Tue, 29 Oct 1996 12:10:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA20378; Tue, 29 Oct 1996 12:10:02 -0800 (PST) Resent-Date: Tue, 29 Oct 1996 12:10:02 -0800 (PST) Resent-Message-Id: <199610292010.MAA20378@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, mi@aldan.ziplink.net Received: from rtfm.ziplink.net ([199.232.255.52]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id MAA20288 for ; Tue, 29 Oct 1996 12:06:30 -0800 (PST) Received: (from root@localhost) by rtfm.ziplink.net (8.7.5/8.7.3) id PAA09251; Tue, 29 Oct 1996 15:03:55 -0500 (EST) Message-Id: <199610292003.PAA09251@rtfm.ziplink.net> Date: Tue, 29 Oct 1996 15:03:55 -0500 (EST) From: mi@aldan.ziplink.net Reply-To: mi@aldan.ziplink.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/1925: file(1) or apsfilter problem Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1925 >Category: bin >Synopsis: file does not consider cyrillic text as text -- breaks apsfilter >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 29 12:10:01 PST 1996 >Last-Modified: >Originator: Mikhail Teterin >Organization: >Release: FreeBSD 2.2-960801-SNAP i386 >Environment: >Description: File(1) considers text with cyrillic characters as data. This definetly breaks apsfilter, and may be other things too. >How-To-Repeat: mi@rtfm:/tmp (185) echo $LANG ru_SU.KOI8-R mi@rtfm:/tmp (186) cal > /tmp/t mi@rtfm:/tmp (187) file !$ file /tmp/t /tmp/t: data mi@rtfm:/tmp (188) unsetenv LANG mi@rtfm:/tmp (189) cal > /tmp/t mi@rtfm:/tmp (190) file !$ file /tmp/t /tmp/t: ASCII text >Fix: Force apsfilter to treat the particular file as ASCII and/ or fix the magic(5) file somehow (correct output should be like, say, "non-ASCII text", but how to destinguish it from data?). >Audit-Trail: >Unformatted: