On Mon, Nov 03, 2003 at 04:46:55PM +0000, Angus Leeming wrote: > Jean-Marc Lasgouttes wrote: > > >>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > > > Angus> Sorry about my language. It was meant to sound pejorative. > > > > Angus> Unfortunately, what works for you appears to break things for > > Angus> those running the Win32 port. Hence my suggestion: wrap the > > Angus> call to latex inside a script if such manipulation is needed. > > > > Angus, are you sure that Kayvan's hack has been applied to the > > source? I do not think so. > > > > JMarc > > This is from the 13x tree, os_win32.C. The hack is the subst line... > > string os::external_path(string const & p) { > string dos_path=p; > if (is_absolute_path(p)) { > char dp[255]; > cygwin_conv_to_full_win32_path(p.c_str(), dp); > dos_path=subst(dp,'\\','/'); > } > lyxerr[Debug::LATEX] > << "<Win32 path correction> [" > << p << "]->>[" > << dos_path << ']' << endl; > return dos_path; > }
No. My hack is this one: Index: src/support/os_win32.C =================================================================== RCS file: /cvs/lyx/lyx-devel/src/support/os_win32.C,v retrieving revision 1.13 diff -u -r1.13 os_win32.C --- src/support/os_win32.C 2003/10/08 08:38:05 1.13 +++ src/support/os_win32.C 2003/11/03 17:01:45 @@ -108,8 +108,9 @@ string external_path(string const & p) { + char const * const disable_cygwin_fixup = getenv("LYX_NO_CYGPATH_FIX"); string dos_path = p; - if (is_absolute_path(p)) { + if ((! disable_cygwin_fixup) && is_absolute_path(p)) { char dp[255]; cygwin_conv_to_full_win32_path(p.c_str(), dp); dos_path = subst(dp,'\\','/'); -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92)