Opened 19 years ago

Closed 18 years ago

Last modified 17 years ago

#2753 closed defect (fixed)

LyX doesn't support paths and filenames with parentheses

Reported by: Uwe Stöhr Owned by: lasgouttes
Priority: high Milestone: 1.5.0
Component: file Version: 1.4.2
Severity: major Keywords:
Cc: j.spitzmueller@…

Description

Create for example a folder "C:\test(test)\" and copy a bst- and a bib-file to
it. Now open a LyX-document and try to use the bst-file for the BibTeX
references - the file "C:\test(test)\IEEEtran.bst" could be used, fine.
But now try to use the bib-file. LyX will then show an error message that it
doesn't support filenames with #, $, %, (, and so on. But the filename
"test.bib" doesn't contain such a character and having parentheses, braces, and
brackets in file or folder names is correct on windows.

Windows only prohibits these characters: \, /, :, <, >, *, ?, ", and |

Allowing parentheses in names is important because on Win XP x64 all programs
are by default installed in the folder
"C:\Program Files (x86)\"

Attachments (1)

2753.diff (8.3 KB ) - added by Juergen Spitzmueller 18 years ago.
patch

Download all attachments as: .zip

Change History (13)

comment:1 by Uwe Stöhr, 19 years ago

Milestone: 1.4.x

comment:2 by Georg Baum, 19 years ago

This check (in PathValidator) is not needed anymore since we copy the files to
the temp dir, it should indeed be removed for the bibtex, external, graphics
and include inset. Of course that means that you will run into trouble if you
export to LaTeX and process the .tex file. We should issue a warning in that
case.

comment:3 by Uwe Stöhr, 18 years ago

blocked: 3297

comment:4 by Georg Baum, 18 years ago

* #3297 has been marked as a duplicate of this bug. *

comment:5 by Uwe Stöhr, 18 years ago

Milestone: 1.4.x1.5.0
Summary: LyX doesn't support paths with parentheses in its nameLyX doesn't support paths and filenames with parentheses

The following characters are currently not supported in paths and filenames:
#, $, %, {, }, [, ], (, ), ", and

I put it on the LyX 1.5.0 agenda as WinXp x64 and Vista used such characters in
paths.

comment:6 by Uwe Stöhr, 18 years ago

Severity: normalmajor

This bug seems to become more important especially for the Vista people.
Therefore major as this prevents for example to start with template files as
images included to them are in paths with parentheses on 64bit Windows systems.

by Juergen Spitzmueller, 18 years ago

Attachment: 2753.diff added

patch

comment:7 by Juergen Spitzmueller, 18 years ago

Cc: j.spitzmueller@… added
Keywords: patch added

comment:8 by Juergen Spitzmueller, 18 years ago

blocked: 3297

comment:9 by Uwe Stöhr, 18 years ago

The patch fixes the bug as far as I tested. (I didn't look into the code if all
changes there are correct but as it fixed the bug and you are the 1.5 maintainer
I would say put it in when José or the others give his OK.)

Many thanks for all your bug fixes today.

comment:10 by Juergen Spitzmueller, 18 years ago

Keywords: fixedintrunk added; patch removed

fixed for 1.5rc2 (rev18897).

comment:11 by Richard Heck, 18 years ago

Resolution: fixed
Status: newclosed

New stable series is 1.5.x.

comment:12 by ps@…, 17 years ago

Keywords: fixedintrunk removed
Note: See TracTickets for help on using tickets.