]> git.lyx.org Git - features.git/commitdiff
merge a few more cygwin patches
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 30 Jan 2002 13:15:19 +0000 (13:15 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 30 Jan 2002 13:15:19 +0000 (13:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3453 a592a061-630c-0410-9148-cb99ea01b6c8

po/POTFILES.in
src/insets/ChangeLog
src/insets/figinset.C
src/support/ChangeLog
src/support/copy.C

index 92d85d025cb6148fe6015d0df32b5f3e40f06d6c..f4c6ecd96fe209629cf6803eab2b4bec6e2e5882 100644 (file)
@@ -48,6 +48,7 @@ src/frontends/qt2/QError.C
 src/frontends/qt2/QERT.C
 src/frontends/qt2/QExternal.C
 src/frontends/qt2/QExternalDialog.C
+src/frontends/qt2/QFloat.C
 src/frontends/qt2/QGraphics.C
 src/frontends/qt2/QInclude.C
 src/frontends/qt2/QIndex.C
@@ -61,6 +62,7 @@ src/frontends/qt2/QPrint.C
 src/frontends/qt2/QPrintDialog.C
 src/frontends/qt2/QRef.C
 src/frontends/qt2/QSearch.C
+src/frontends/qt2/QShowFile.C
 src/frontends/qt2/QSpellchecker.C
 src/frontends/qt2/QTabularCreate.C
 src/frontends/qt2/QTexinfo.C
index 385dc37819dba6a08cb34a18212872804b0504d3..a84664a65d0618613d3bccd56a7e154ae82bbb12 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-30  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
+
+       * figinset.C (runqueue): open translation file in binary mode (for
+       cygwin). 
+
 2002-01-27  Herbert Voss  <voss@lyx.org>
 
        * insetgraphic.[Ch]: mostly newritten to support graphicx with
index 4737f6e739ce6143fe04bb2cc4b02cbca6d12484..dc2773dec6ee5e5b9a62f9b8e0e06ecf6ecb11e9 100644 (file)
@@ -517,7 +517,7 @@ void runqueue()
 
                        // create translation file
                        ofstream ofs;
-                       ofs.open(make_tmp(getpid()).c_str());
+                       ofs.open(make_tmp(getpid()).c_str(), ios::binary);
                        ofs << "gsave clippath pathbbox grestore\n"
                            << "4 dict begin\n"
                            << "/ury exch def /urx exch def /lly exch def "
index 602f5e5ae4b9d6707ad2ed3fffa36b0b3fca3139..1f5124d28e36fa861d02a2e33cd510a530f694ba 100644 (file)
@@ -1,3 +1,7 @@
+2002-01-30  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
+
+       * copy.C (copy): open file in binary mode (for cygwin)
+
 2002-01-19  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
 
        * lyxsum.C: remove #warnings and replaced them with runtime debug
index 9458c7f70411efaa5b8cd035601d7d00db3f8e11..e9061065dce7aebba0c1bf765c72d22f3d14cb90 100644 (file)
@@ -9,7 +9,8 @@ bool lyx::copy(string const & from, string const & to)
 {
        std::ifstream ifs(from.c_str());
        if (!ifs) return false;
-       std::ofstream ofs(to.c_str(), std::ios::out|std::ios::trunc);
+       std::ofstream ofs(to.c_str(),
+                         std::ios::binary | std::ios::out | std::ios::trunc);
        if (!ofs) return false;
        ofs << ifs.rdbuf();
        if (ofs.good()) return true;