Re: Bug in configure.py (was: Preamble/external files problems in LyX 2.0)

2011-06-01 Thread Enrico Forestieri
On Wed, Jun 01, 2011 at 02:32:10PM +0200, Michal wrote: > On Wed, 1 Jun 2011 03:31:05 +0200 > Enrico Forestieri wrote: > > > [...] > > I assume that this may happen if the "long" name stem has less then 8 > > chars. Indeed: > > > > $ cygpath -d 'a b.tex' > > AB2E6D~1.TEX > Also remember tha

Re: Bug in configure.py (was: Preamble/external files problems in LyX 2.0)

2011-06-01 Thread Enrico Forestieri
On Wed, Jun 01, 2011 at 07:01:30PM +0200, Michal wrote: > On Wed, 1 Jun 2011 03:17:53 +0200 > Enrico Forestieri wrote: > > > [...] I would like that you test the attached patch (to be applied on > > top of the previous one) and report back whether it works for you. > Also, before I forget: i

Re: Bug in configure.py (was: Preamble/external files problems in LyX 2.0)

2011-06-01 Thread Enrico Forestieri
On Wed, Jun 01, 2011 at 02:31:06PM +0200, Michal wrote: > Not knowing whether to apply only your second patch or to apply both > of them, I tried both approaches. Both seems correct now (although with > the last patch no longer see the point of invoking GetShortPathNameW), The point is that i

Re: Bug in configure.py (was: Preamble/external files problems in LyX 2.0)

2011-06-01 Thread Michal
On Wed, 1 Jun 2011 03:17:53 +0200 Enrico Forestieri wrote: > [...] I would like that you test the attached patch (to be applied on > top of the previous one) and report back whether it works for you. Also, before I forget: is there any reason of not using the LATEX variable instead of the har

Re: Bug in configure.py (was: Preamble/external files problems in LyX 2.0)

2011-06-01 Thread Michal
On Wed, 1 Jun 2011 03:31:05 +0200 Enrico Forestieri wrote: > [...] > I assume that this may happen if the "long" name stem has less then 8 > chars. Indeed: > > $ cygpath -d 'a b.tex' > AB2E6D~1.TEX Also remember that %TEMP% can also contain any user-preferred path, like 'C:\a b\c d\e f' ...

Re: Bug in configure.py (was: Preamble/external files problems in LyX 2.0)

2011-06-01 Thread Michal
On Wed, 1 Jun 2011 03:17:53 +0200 Enrico Forestieri wrote: > [...] > I managed to actually find a file system that does not provide for > short filenames and reproduced the problem you are reporting. For reference (in case of any further problems), reproducing my 'conditions' is relatively ea

Re: Bug in configure.py (was: Preamble/external files problems in LyX 2.0)

2011-05-31 Thread Enrico Forestieri
On Tue, May 31, 2011 at 02:23:28PM +0200, Michal wrote: > From http://msdn.microsoft.com/en-us/library/aa364989%28v=vs.85%29.aspx > "The short form can be longer than the specified path." > > (so using len(longname)+1 as the length of the output buffer could > end badly) I assume that th

Re: Bug in configure.py (was: Preamble/external files problems in LyX 2.0)

2011-05-30 Thread Enrico Forestieri
On Mon, May 30, 2011 at 06:58:11PM +0200, Michal wrote: > On Sat, 28 May 2011 18:12:13 +0200 > Michal wrote: > > > Recently I've reinstalled both MiKTeX and LyX from scratch > > using official installers for both, and my documents are not > > compilable anymore, instead I get the following messs

Bug in configure.py (was: Preamble/external files problems in LyX 2.0)

2011-05-30 Thread Michal
On Sat, 28 May 2011 18:12:13 +0200 Michal wrote: > Recently I've reinstalled both MiKTeX and LyX from scratch > using official installers for both, and my documents are not > compilable anymore, instead I get the following messsage: > > ! LaTeX Error: File `preambles/common.sty' not found.

Preamble/external files problems in LyX 2.0

2011-05-28 Thread Michal
I have the following in most of my documents written in the preamble: \input{preambles/common.sty} It has always worked for me, dating back to LyX 1.4.x, and up to LyX 2.0rc2. Recently I've reinstalled both MiKTeX and LyX from scratch using official installers for both, and my documen