From watanabe@crayon.planet.sci.kobe-u.ac.jp  Mon Jan 10 20:23:49 2000
Return-Path: <watanabe@crayon.planet.sci.kobe-u.ac.jp>
Received: from crayon.planet.sci.kobe-u.ac.jp (crayon.planet.sci.kobe-u.ac.jp [133.30.53.130])
	by hub.freebsd.org (Postfix) with ESMTP id 61E0415402
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 10 Jan 2000 20:22:59 -0800 (PST)
	(envelope-from watanabe@crayon.planet.sci.kobe-u.ac.jp)
Received: (from watanabe@localhost)
	by crayon.planet.sci.kobe-u.ac.jp (8.9.3/3.7W-mx) id NAA16289;
	Tue, 11 Jan 2000 13:22:02 +0900 (JST)
Message-Id: <200001110422.NAA16289@crayon.planet.sci.kobe-u.ac.jp>
Date: Tue, 11 Jan 2000 13:22:02 +0900 (JST)
From: watanabe@komadori.planet.sci.kobe-u.ac.jp
Sender: watanabe@crayon.planet.sci.kobe-u.ac.jp
Reply-To: watanabe@komadori.planet.sci.kobe-u.ac.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: "file" command cannot recognize LaTeX2e files.
X-Send-Pr-Version: 3.2

>Number:         16048
>Category:       bin
>Synopsis:       "file" command cannot recognize LaTeX2e files.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    asmodai
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 10 20:30:00 PST 2000
>Closed-Date:    Wed Mar 14 05:49:26 PST 2001
>Last-Modified:  Wed Mar 14 05:50:12 PST 2001
>Originator:     Takeshi WATANABE
>Release:        FreeBSD 3.4-RELEASE i386
>Organization:
Kobe University, Kobe, Japan
>Environment:

  All

>Description:

  For LaTeX209 file ...

% file test1.tex
test1.tex: LaTeX document text

  For LaTeX2e file ...

% file test2.tex
test2.tex: ASCII text

  We use \documentclass in LaTeX2e documents, as well as we use \documentstyle
in LaTeX209 documents.

>How-To-Repeat:

  Always

>Fix:

  Apply following patch.

--- /usr/src/usr.bin/file/Magdir/tex.orig	Tue Jan 23 21:28:50 1996
+++ /usr/src/usr.bin/file/Magdir/tex	Tue Jan 11 13:03:52 2000
@@ -33,4 +33,5 @@
 0	string		\\section	LaTeX document text
 0	string		\\setlength	LaTeX document text
 0	string		\\documentstyle	LaTeX document text
+0	string		\\documentclass	LaTeX document text
 0	string		\\chapter	LaTeX document text

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: sheldonh 
State-Changed-When: Tue Jan 11 05:33:00 PST 2000 
State-Changed-Why:  
Could you take this up with the maintainers of the file package, 
Mark Moraes <moraes@deshaw.com> and Christos Zoulas 
<christos@deshaw.com> and let us know when there's an updated 
distribution which addressed this issue? 
State-Changed-From-To: feedback->suspended 
State-Changed-By: asmodai 
State-Changed-When: Wed Jan 12 07:37:08 PST 2000 
State-Changed-Why:  
Reminder for myself to close it when the import is done. 


Responsible-Changed-From-To: freebsd-bugs->asmodai 
Responsible-Changed-By: asmodai 
Responsible-Changed-When: Wed Jan 12 07:37:08 PST 2000 
Responsible-Changed-Why:  
I am working on preparing the file 3.28 import (which fixes this problem 
btw). 
State-Changed-From-To: suspended->closed 
State-Changed-By: asmodai 
State-Changed-When: Wed Mar 14 05:49:26 PST 2001 
State-Changed-Why:  
A new file, which supports this recognition, has been imported in: 
4-STABLE and CURRENT. 

I hope to get some time soon to MFC it to 3-STABLE. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=16048 
>Unformatted:
