This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Error message from antiword since upgrade to cygwin 1.5.10


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@cygwin.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]