Luis Rivera wrote:
I've uploaded my latest offering of tex2lyx to the wiki.
It is *exactly* what is in the CVS tree. I'd like you to confirm that
it works perfectly well on Win98 and (Luis!) that it fails on Win95,

I confirm BOTH things: works fine on win98; fails as expected on win95.
 Indeed, it fails so regularly, that it even misses the slash if you
don't specify the -sysdir or set the environment variable (keeps
looking into c:/lyx-1.4/bin../resources/lyx, instead of
c:/lyx-1.4/bin/../resources/lyx).

I wonder...
does Win95's emulation of GetLongPathName require directory separators to be '\' rather than '/' ?

Luis, you have MinGW installed don't you? Could you compile the attached program with

$ g++ -Os -W -Wall -o trial trial.cpp

You'll need to adjust the line
    std::string const p1 =
        get_short_path("C:\\Documents and Settings\\Angus\\Desktop");
to something sensible on your Win95 box.

Here it outputs:
$ ./trial
p1 == C:\DOCUME~1\Angus\Desktop
p2 == C:/DOCUME~1/Angus/Desktop
p3 == C:\Documents and Settings\Angus\Desktop
p4 == C:\Documents and Settings\Angus\Desktop
p5 == C:/Documents and Settings/Angus/Desktop
p6 == C:\Documents and Settings\Angus\Desktop
p7 == C:\Documents and Settings\Angus\Desktop

I've also placed a new version of tex2lyx at
    http://wiki.lyx.org/uploads/LaTeX/tex2lyx/tex2lyx_win32_06oct05.zip

which makes sure that the paths have 'native' directory separators when passed to GetLongPathName. It also produces some debug output, dumping each 'internal_path' and 'external_path' to stderr.

$ ~/lyx/devel/build-tex2lyx/LyX-1.4/bin/tex2lyx.exe UserGuide.tex \
  UserGuide2.lyx 2>paths.txt

Angus




X bitmap

Reply via email to