On Mon, Oct 02, 2006 at 01:37:12AM +0200, Enrico Forestieri wrote:

> On Mon, Oct 02, 2006 at 12:28:34AM +0200, Joost Verburg wrote:
> 
> > Enrico Forestieri wrote:
> > > Maybe something like
> > > 
> > > #if defined(__CYGWIN__) || defined(__MINGW32__)
> > >     else if ( ! isprint (c & 0x7f) && ! isspace (c))
> > > #else
> > >     else if ( ! isprint (c) && ! isspace (c))
> > > #endif
> > > 
> > > But I still have to see whether the "#if" line is not to be augmented
> > > by a " || defined(MSVC)" ;-)
> > 
> > It turns out that MSVC also needs this fix, see bug 2836. I'll add it soon.
> 
> Are you sure? When I try to View->DVI the file attached to bug 2836 by
> Uwe I see the following on the terminal:
> 
> Traceback (most recent call last):
>   File "C:/Programmi/LyX14/Resources/scripts/clean_dvi.py", line 106, in 
> <module>
>     main(sys.argv)
>   File "C:/Programmi/LyX14/Resources/scripts/clean_dvi.py", line 102, in main
>     dt2dv_stdin.write(dtl_data)
> IOError: [Errno 0] Error
> 
> Meaning that it is the clean_dvi.py script which is failing to write
> back the dvi file. When I delete "C:\Programmi\LyX14\python" from
> PATH prefix, meaning that my installed python will be used, then
> the error disappears.
> 
> So, I think that there is a problem with the bundled python.

Uhm, it seems that the bundled python doesn't work for me for *any*
dvi file.

I was assuming that the <LyX>/bin directory is prepended anyway to the
PATH, but it doesn't seem to be the case. When I remove
"C:\Programmi\LyX14\python" from PATH prefix, then the dtl tools compiled
by myself are picked up. So I instead replace "C:\Programmi\LyX14\python"
with "C:\Programmi\LyX14\bin" and then I get on the terminal:

C:\Programmi\LyX14\bin\dt2dv.exe (get_Lstring) : DTL FILE ERROR (Standard 
Input) : cannot read string[60] from dtl file.
C:\Programmi\LyX14\bin\dt2dv.exe (dinfo) : Current DTL input line 6 :
"special1 185 'ps:SDict begin [ /Producer (dvips + Distiller) /Title 
(Molekülspektroskopie) /Subject (FPII) /Creator (LaTeX with hyperref package) 
/Author (Uwe Stöhr) /Keywords () /DOCINFO pdfmark end'
"

Hence, the fix should indeed be activated for MSVC, too.

-- 
Enrico

Reply via email to