Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

antiword reports "I can't open your mapping file" error #453

Closed
Radrik5 opened this issue Sep 30, 2015 · 6 comments
Closed

antiword reports "I can't open your mapping file" error #453

Radrik5 opened this issue Sep 30, 2015 · 6 comments
Assignees

Comments

@Radrik5
Copy link

Radrik5 commented Sep 30, 2015

I use Git 2.6.0 64 bit on Windows 7. Clean install without Windows Explorer integration.

MCVE:

Projects $ git clone https://github.com/Radrik5/test-git-diff
Cloning into 'test-git-diff'...
remote: Counting objects: 9, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 9 (delta 0), reused 9 (delta 0), pack-reused 0
Receiving objects: 100% (9/9), 6.06 KiB | 0 bytes/s, done.
Checking connectivity... done.

Projects $ cd test-git-diff/

test-git-diff $ GIT_TRACE=1 git diff HEAD^
11:50:31.465972 git.c:348               trace: built-in: git 'diff' 'HEAD^'
11:50:31.469972 run-command.c:335       trace: run_command: 'less'
11:50:31.471972 run-command.c:335       trace: run_command: 'astextplain' 'Document.doc'
diff --git a/Document.doc b/Document.doc
new file mode 100644
index 0000000..934e298
I can't open your mapping file (UTF-8.txt)
It is not in 'C:\Users\Radrik5\AppData\Local\/.antiword' nor in '/usr/share/antiword'.
        Name: C:\Program Files\Git\mingw64\bin\antiword.exe
        Purpose: Display MS-Word files
        Author: (C) 1998-2005 Adri van Os
        Version: 0.37  (21 Oct 2005)
        Status: GNU General Public License
        Usage: C:\Program Files\Git\mingw64\bin\antiword.exe [switches] wordfile1 [wordfile2 ...]
        Switches: [-f|-t|-a papersize|-p papersize|-x dtd][-m mapping][-w #][-i #][-Ls]
                -f formatted text output
                -t text output (default)
                -a <paper size name> Adobe PDF output
                -p <paper size name> PostScript output
                   paper size like: a4, letter or legal
                -x <dtd> XML output
                   like: db (DocBook)
                -m <mapping> character mapping file
                -w <width> in characters of text output
                -i <level> image level (PostScript only)
                -L use landscape mode (PostScript only)
                -r Show removed text
                -s Show hidden (by Word) text
@Radrik5
Copy link
Author

Radrik5 commented Oct 1, 2015

Could you install /usr/share/antiword within Git for Windows? I didn't see such errors with Git 1.9.5.

@kblees
Copy link

kblees commented Oct 1, 2015

I encountered the same problem yesterday, just had no time to investigate further.

Could you install /usr/share/antiword within Git for Windows

These files are actually installed, antiword just doesn't find them.

As a workaround, I copied the content of $INSTALLDIR/mingw64/share/antiword to my $HOME/.antiword.

@dscho
Copy link
Member

dscho commented Oct 1, 2015

I can reproduce the problem!

@dscho dscho self-assigned this Oct 1, 2015
dscho added a commit to dscho/MINGW-packages that referenced this issue Oct 1, 2015
Previously, antiword assumed that its resource files live in the
directory `/usr/share/antiword/`. This is most likely not true with
MSys2, so let's teach it to find the goods relative to the
antiword.exe that was called.

This fixes git-for-windows/git#453

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho
Copy link
Member

dscho commented Oct 1, 2015

And I fixed the problem, see https://github.com/Alexpux/MINGW-packages/pull/807

@Radrik5
Copy link
Author

Radrik5 commented Oct 1, 2015

Cool! Thank you!

@dscho
Copy link
Member

dscho commented Oct 5, 2015

A new package was uploaded, so this problem has been addressed.

@dscho dscho closed this as completed Oct 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants