Re: Bug in configure.py

2011-06-03 Thread Julien Rioux
On 03/06/2011 2:11 PM, Michal wrote: On Fri, 03 Jun 2011 13:02:25 -0400 Julien Rioux wrote: [...] I didn't follow the thread but I am just wondering about your suggested user hint. Do you suggest that such a message should appear in a popup window when configure.py fails, or that it should a

Re: Bug in configure.py

2011-06-03 Thread Michal
On Fri, 03 Jun 2011 13:02:25 -0400 Julien Rioux wrote: > [...] > I didn't follow the thread but I am just wondering about your > suggested user hint. Do you suggest that such a message should appear > in a popup window when configure.py fails, or that it should appear > as a warning in the doc

Re: Bug in configure.py

2011-06-03 Thread Julien Rioux
On 03/06/2011 9:31 AM, Michal wrote: On Wed, 1 Jun 2011 19:49:47 +0200 Enrico Forestieri wrote: [...] The point is that if the TeX engine does not support spaces in filenames the check is going to fail. Now, recent MikTeX versions support spaces in filenames, but old ones do not, for example.

Re: Bug in configure.py

2011-06-02 Thread Richard Heck
On 06/01/2011 06:26 PM, Enrico Forestieri wrote: > On Wed, Jun 01, 2011 at 01:03:43PM -0400, Richard Heck wrote: > >> On 05/31/2011 09:31 PM, Enrico Forestieri wrote: >>> On Tue, May 31, 2011 at 02:23:28PM +0200, Michal wrote: >>> From http://msdn.microsoft.com/en-us/library/aa364989%28v=vs.85

Re: Bug in configure.py

2011-06-01 Thread Enrico Forestieri
On Wed, Jun 01, 2011 at 01:03:43PM -0400, Richard Heck wrote: > On 05/31/2011 09:31 PM, Enrico Forestieri wrote: > > 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

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

2011-06-01 Thread Richard Heck
On 05/31/2011 09:31 PM, Enrico Forestieri wrote: > 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

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