On  3-Sep-2006, Rafael Laboissiere wrote:

| package octave2.1
| forwarded 362423 [EMAIL PROTECTED]
| tags 362423 upstream
| thanks
| 
| * Rafael Laboissiere <[EMAIL PROTECTED]> [2006-04-12 23:55]:
| 
| > I am forwarding below a bug report filed against the octave2.9 Debian
| > package.  I have not checked the problems myself, but Martin Milchmayr is
| > doing a very good job on building the Debian packages with the prospective
| > gcc compiler.
| 
| This is just to register that the same problem has been reported against
| the octave2.1 package.  See http://bugs.debian.org/362423

Does the following patch help?  I think this is how we avoided the
problem for 2.9.x.

jwe


src/ChangeLog:

2006-09-05  John W. Eaton  <[EMAIL PROTECTED]>

        * load-save.cc (Fsave): Use tellp instead of pubseekoff to
        determine whether we are at beginning of file.


Index: src/load-save.cc
===================================================================
RCS file: /cvs/octave/src/load-save.cc,v
retrieving revision 1.191.2.8
diff -u -u -r1.191.2.8 load-save.cc
--- src/load-save.cc    18 Oct 2005 17:31:01 -0000      1.191.2.8
+++ src/load-save.cc    5 Sep 2006 14:35:33 -0000
@@ -1478,9 +1478,7 @@
          
          if (file)
            {
-             bool write_header_info
-               = ((file.rdbuf ())->pubseekoff (0, std::ios::cur)
-                  == static_cast<std::streampos> (0));
+             bool write_header_info = ! file.tellp ();
              
              save_vars (argv, i, argc, file, save_builtins, format,
                         save_as_floats, write_header_info);


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to