"Claus Hentschel" <[EMAIL PROTECTED]> writes:

| Patchfile begins here:
| Created 2000-04-27 by Claus Hentschel
| ==========================================
| File: intl/loadmsgcat.c
| diff -u -p /tmp/pre1/intl/loadmsgcat.c /tmp/lyx-1.1.5pre1/intl/loadmsgcat.c
| --- /tmp/pre1/intl/loadmsgcat.c Sat Jan 08 20:49:42 2000
| +++ /tmp/lyx-1.1.5pre1/intl/loadmsgcat.c Thu Apr 27 15:28:26 2000
| @@ -85,7 +85,11 @@ _nl_load_domain (domain_file)
|      return;
| 
|    /* Try to open the addressed file.  */
| +#ifdef CYGWIN32
| +  fd = open (domain_file->filename, O_RDONLY | O_BINARY);
| +#else
|    fd = open (domain_file->filename, O_RDONLY);
| +#endif
|    if (fd == -1)
|      return;

This patch really should be sent to the gettext people.

| ==========================================
| File: src/buffer.C
| diff -u -p /tmp/pre1/src/buffer.C /tmp/lyx-1.1.5pre1/src/buffer.C
| --- /tmp/pre1/src/buffer.C Wed Apr 26 06:50:28 2000
| +++ /tmp/lyx-1.1.5pre1/src/buffer.C Thu Apr 27 14:16:12 2000
| @@ -1655,10 +1655,24 @@ void Buffer::makeLaTeXFile(string const
|     texrow.newline();
|    }
|    if (!original_path.empty()) {
| +#ifdef CYGWIN32
| +   string dos_path = original_path;
| +
| +   if( dos_path.compare(0,2,"//") == 0 ) {
| +    dos_path.erase(0,2);
| +    dos_path.insert(1,":");
| +   } else
| +    dos_path.insert(0,"c:");
| +   ofs << "\\makeatletter\n"
| +       << "\\def\\input@path{{"
| +       << dos_path << "/}}\n"
| +       << "\\makeatother\n";
| +#else
|     ofs << "\\makeatletter\n"
|         << "\\def\\input@path{{"
|         << original_path << "/}}\n"
|         << "\\makeatother\n";
| +#endif
|     texrow.newline();
|     texrow.newline();
|     texrow.newline();

Could this be done with a
string dosPath(string const & p)
{
        string ret(p);
        if (ret.compare(0, 2, "//") == 0) {
                ret.erase(0, 2);
                ret.insert(1, ":");
        } else
                ret.insert(0, "c:");
        return ret;
}

Instead?

to avoid the CYGWIN32 in the code?

| ==========================================
| File: lib/lyxrc.example
| diff -u -p /tmp/pre1/lib/lyxrc.example /tmp/lyx-1.1.5pre1/lib/lyxrc.example
| --- /tmp/pre1/lib/lyxrc.example Thu Apr 27 15:23:52 2000
| +++ /tmp/lyx-1.1.5pre1/lib/lyxrc.example Thu Apr 27 15:34:08 2000
| @@ -100,7 +100,7 @@
|  # not append the -paper option to the dvi command at all. This case is
|  # especially useful when viewing your documents on Windows with yap,
|  # because yap does not allow a command line option for the paper size.
| -#\view_dvi_paper ""
| +#\view_dvi_paper_option ""
| 
|  # LyX assumes that the default papersize should be usletter.  If this is
| not
|  # true for your site, use the next line to specify usletter, legal,

Ok.

        Lgb

Reply via email to