Bug 70110

Summary: xmlto chokes on files with underscore in their name
Product: [Retired] Red Hat Linux Reporter: Crutcher Dunnavant <crutcher+bugzilla>
Component: xmltoAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-08-05 22:43:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch for /usr/share/xmlto/format/fo/* none

Description Crutcher Dunnavant 2002-07-30 14:40:46 UTC
Description of Problem:
xmlto will fail on processing files with underscores in their names.

Version-Release number of selected component (if applicable):
xmlto-0.0.8, xmlto-0.0.10-4 (the limbo beta)

How Reproducible:
use xmlto on the attached file as:

xmlto ps example.xml

and as

xmlto ps example_underscore.xml


This is very annoying/broken. I'm trying to find the cause, but haven't found it
yet.

Comment 1 Tim Waugh 2002-07-30 22:55:07 UTC
This is a tetex limitation of some sort.  It might be worthwhile for xmlto to 
work around it though.

Comment 2 Crutcher Dunnavant 2002-07-31 07:24:35 UTC
I'm faking it like this in my makefiles, if it helps:

%.ps: %.fo
        # Stupid, stupid, stupid xmltex dies on '_' in filenames.
        ORIGDIR="$$PWD"; \
        DIR=`mktemp -d /tmp/ghede.XXXXXX`; \
        MUNGE=`basename $^ | sed -e 's/_/.u./g'`; \
        cp $^ $$DIR/$$MUNGE.fo && \
        cd $$DIR; \
        xmltex $$MUNGE.fo > /dev/null && \
        xmltex $$MUNGE.fo > /dev/null && \
        xmltex $$MUNGE.fo > /dev/null && \
        dvips -R -q -o $$ORIGDIR/$@ $$MUNGE.dvi; \
        cd $$ORIGDIR; \
        rm -rf $$DIR;

%.pdf: %.fo
        # Stupid, stupid, stupid pdfxmltex dies on '_' in filenames.
        ORIGDIR="$$PWD"; \
        DIR=`mktemp -d /tmp/ghede.XXXXXX`; \
        MUNGE=`basename $^ | sed -e 's/_/.u./g'`; \
        cp $^ $$DIR/$$MUNGE.fo && \
        cd $$DIR; \
        pdfxmltex $$MUNGE.fo > /dev/null && \
        pdfxmltex $$MUNGE.fo > /dev/null && \
        pdfxmltex $$MUNGE.fo > /dev/null && \
        mv $$MUNGE.pdf $$ORIGDIR/$@; \
        cd $$ORIGDIR; \
        rm -rf $$DIR;


Comment 3 Crutcher Dunnavant 2002-08-02 08:56:31 UTC
Created attachment 68426 [details]
patch for /usr/share/xmlto/format/fo/*

Comment 4 Tim Waugh 2002-08-05 22:43:51 UTC
Fixed in CVS.

Comment 5 Tim Waugh 2002-10-16 16:55:31 UTC
Fixed package is xmlto-0.0.11-1.