Uwe Stöhr wrote:

> I would do this but the Problem with Yap is not a bug in LyX.

Indeed, but nevertheless it would be nice to fix even nonLyX bugs :-)

> Windows has a character limit for filenames. If you use a filename with
> 220 chars, export the LyX document to .tex, run then LaTeX, and open the
> created file with yap no crash occurs. If you view the DVI from within
> LyX yap crashes because the dvi file uses then the path
> 
>
PSfile="F:/lyxdokumente/lyx/tmp/lyx_tmpdir1060a00924/lyx_tmpbuf0/_lyxdokumente_FILENAME.eps
> 
> (where FILENAME has 220 chars) and this is too long for ghostscript and
> Windows.

Is that a windows size constraint, or does that come from ghostscript? Seems
to be a bit short to mee nowadays (IIRC the limit on linux is 4096).

> But anyway, who uses such long filenames? Should we take care about
> this? If yes, we could limit the filename length allowed for LyX to 100
> chars or so, but I don't think this solves the problem in general.

I don't think it is worth the trouble. LyX 1.4.0 writes relative paths, that
means if your original file name is short enough then the name in the DVI
file is short enough, too. It may be possible to do the same in 1.3, but
because we use one directory per buffer we would need to add some
[EMAIL PROTECTED] modifications.
IMHO we should advise users to use a temp dir with a short name (like
C:\temp) and not use too long filenames.


Georg

Reply via email to