delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/02/10:25:18

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <F76C9B2DA2FC4C4CA0A18E288BBCBCF7082179B4@nihexchange24.nih.gov>
From: "Buchbinder, Barry (NIH/NIAID)" <BBuchbinder AT niaid DOT nih DOT gov>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: RE: Error message from antiword since upgrade to cygwin 1.5.10
Date: Wed, 2 Jun 2004 10:24:53 -0400
MIME-Version: 1.0
X-IsSubscribed: yes

The file dates on cp1250.txt, cp1251.txt and cp1252.txt were all Oct. 15,
2003, same as /bin/antiword.exe.  I reinstalled to make sure that
cp1250.txt, cp1251.txt and cp1252.txt had not been changed: same error.

cp1250.txt, cp1251.txt and cp1252.txt have "0x00<tab>0x0000<tab>#NULL" as
the first line of the definitions.

vim reports that the files are in DOS mode.  Converting to Unix line endings
with d2u does not get rid of the error message.

The spaces between "#" and "NULL" is a tab:

/usr/share/antiword> antiword -w 0 path/file.doc 2&> tmp
/usr/share/antiword> head -1 tmp
Syntax error in: '0x00  0x0000  #       NULL'
/usr/share/antiword> head -1 tmp | od -c
0000000   S   y   n   t   a   x       e   r   r   o   r       i   n   :
0000020       '   0   x   0   0  \t   0   x   0   0   0   0  \t   #  \t
0000040   N   U   L   L   '  \n
0000046

reinstalled and inserted tabs after #: no change
then converted dos to unix: no change

reinstalled
Tried mapping files, all gave the error messages except MacRoman.txt,
UTF-8.txt, and roman.txt.  (roman.txt gave a lot of error messages, but not
the "Syntax error in:" one.

/usr/share/antiword> for F in *.txt; do echo $F ; antiword -m $F -w 0
path/file.doc > /dev/null ; done
8859-1.txt
Syntax error in: '0x00  0x0000  #       NULL'
8859-10.txt
Syntax error in: '0x00  0x0000  #       NULL'
8859-13.txt
Syntax error in: '0x00  0x0000  #       NULL'
8859-14.txt
Syntax error in: '0x00  0x0000  #       NULL'
8859-15.txt
Syntax error in: '0x00  0x0000  #       NULL'
8859-16.txt
Syntax error in: '0x00  0x0000  #       NULL'
8859-2.txt
Syntax error in: '0x00  0x0000  #       NULL'
8859-3.txt
Syntax error in: '0x00  0x0000  #       NULL'
8859-4.txt
Syntax error in: '0x00  0x0000  #       NULL'
8859-5.txt
Syntax error in: '0x00  0x0000  #       NULL'
8859-6.txt
Syntax error in: '0x00  0x0000  #       NULL'
8859-7.txt
Syntax error in: '0x00  0x0000  #       NULL'
8859-8.txt
Syntax error in: '0x00  0x0000  #       NULL'
8859-9.txt
Syntax error in: '0x00  0x0000  #       NULL'
MacRoman.txt
UTF-8.txt
cp1250.txt
Syntax error in: '0x00  0x0000  #NULL'
cp1251.txt
Syntax error in: '0x00  0x0000  #NULL'
cp1252.txt
Syntax error in: '0x00  0x0000  #NULL'
cp437.txt
Syntax error in: '0x00  0x0000  #NULL'
cp850.txt
Syntax error in: '0x00  0x0000  #NULL'
cp852.txt
Syntax error in: '0x00  0x0000  #NULL'
cp862.txt
Syntax error in: '0x00  0x0000  #NULL'
cp866.txt
Syntax error in: '0x00  0x0000  #NULL'
koi8-r.txt
Syntax error in: '0x00  0x0000  #       NULL'
koi8-u.txt
Syntax error in: '0x00  0x0000  #       NULL'

-----Original Message-----
From: Gerrit P. Haase
Sent: Wednesday, June 02, 2004 8:10 AM
To: Buchbinder, Barry (NIH/NIAID)
Cc: 'cygwin AT cygwin DOT com'
Subject: Re: Error message from antiword since upgrade to cygwin 1.5.10

Barry wrote:

> Syntax error in: '0x00  0x0000  #       NULL'

> It does this with several different MS Word files that (I think) haven't
> changed since the upgrade.

> But antiword _seems_ to work OK (or at least as well as before the
upgrade).

Interesting.  Have the codepage mapping files been modified?

Please have a look in /usr/share/antiword, the three files cp1250.txt,
cp1251.txt and cp1252.txt should contain "0x00 0x0000  #NULL" at the
first line of the definitions without space between '#' and 'NULL'.

Gerrit
-- 
=^..^=                                     http://nyckelpiga.de/donate.html

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019