Clicking on a file is essentially equivalent to running the command line with the full path:
dotty C:Documents and SettingsgpteslerMy Documentsfoo.gvz
(since .dot is a Microsoft Word template file, I use .gvz instead) and the spaces cause it to split the filename into several filenames and put up an alert window Lefty Panic cannot open input file: and
OK
Experimenting directly from a command line, I tried putting quotes around the filename, which sometimes cures such situations: dotty "C:Documents and SettingsgpteslerMy Documentsfoo.gvz"
but I got the same error.
However, using the "8dot3" version of the filename works: dotty C:Docume~1gpteslerMyDocu~1foo.gvz
The Windows API call GetShortPathName should let you get that automatically from the string that has the spaces in it.
This affects other graphviz components, too, not just dotty.
Comments:
[erg] As described above, dotty splits a single argument, such
as "one two.dot" into two. Perhaps this happens because of an additional
parsing between dotty and lefty.
[erg] The fix at least allow one to quote the filename. Presumably,
if the GUI hands dotty a filename with a space which is not seen as
a single argument, it will still get split. One could argue that it
should be the responsibility of the GUI to do the mapping, not every
program. This is reminiscent of the MS approach where each program
does its own globbing, rather than providing it in the shell.
Owner: ek
Status: Fixed (7 April 2005)