#1573 closed defect (worksforme)
Space in pathname for mimeviewer not supported
| Reported by: | anonymous | Owned by: | Christian Boos |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | general | Version: | 0.8.1 |
| Severity: | minor | Keywords: | mimeview highlighting |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
When using a space inside the pathname pointing to enscript, the execution of enscript fails.
[mimeviewer] enscript_path = c:\program files\enscript\bin\enscript.exe
Debug out:
23:48:15 Trac[mimeview] WARNING: Display failed: Running (c:\program files\enscript\bin\enscript.exe --color -h -q --language=html -p - -Ejava) failed: 0, 'c:\program' is not recognized as an internal or external command, operable program or batch file. .
As a workaround I used the 8.3 format on windows
[mimeviewer] enscript_path = c:\progra~1\enscript\bin\enscript.exe
Attachments (0)
Change History (7)
comment:1 by , 19 years ago
| Keywords: | configuration added; Syntax Highlighting Enscript removed |
|---|
comment:2 by , 19 years ago
| Keywords: | mimeview highlighting added; configuration removed |
|---|---|
| Milestone: | → 0.11 |
| Owner: | changed from to |
| Severity: | normal → minor |
… or simply moving enscript elsewhere.
comment:3 by , 19 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Fixed in r4392.
I've not tested the enscript case (as I've wipe out enscript), but the similar change for php did work. Confirmation of the fix would be appreciated nevertheless.
I hope this doesn't break anything for Linux ;)
comment:4 by , 19 years ago
This should work on linux, but it prevents users from passing additional arguments to scripts, which was previously possible. Couldn't users simply add quotes around the path in trac.ini?
comment:5 by , 19 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
comment:6 by , 19 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | reopened → closed |
Adding quotes works indeed perfectly.
comment:7 by , 19 years ago
| Milestone: | 0.11 |
|---|



Would quoting the
enscript_pathstring work?