# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1350056766 14400 # Node ID 3ae8c1ee7365ecf889234eca8301500e794e71c3 # Parent f0dfdc7faa71b09a98977d4e087582918aab1dc3# Parent dcd6fa8d3da2f33ed331251b028269a2729cc699 maint: periodic merge of stable to default diff --git a/doc/interpreter/contrib.txi b/doc/interpreter/contrib.txi diff --git a/etc/HACKING b/etc/HACKING diff --git a/etc/README.MacOS b/etc/README.MacOS diff --git a/etc/README.MinGW b/etc/README.MinGW diff --git a/libinterp/interp-core/zfstream.cc b/libinterp/interp-core/zfstream.cc --- a/libinterp/interp-core/zfstream.cc +++ b/libinterp/interp-core/zfstream.cc @@ -473,6 +473,11 @@ if ((io_mode & std::ios_base::in) && way == std::ios_base::cur) computed_off += this->gptr () - this->egptr (); + // Handle tellg/tellp as a special case up front, no need to seek + // or invalidate get/put buffers + if (off == 0 && way == std::ios_base::cur) + return pos_type (gztell (file) + computed_off); + if (way == std::ios_base::beg) ret = pos_type (gzseek (file, computed_off, SEEK_SET)); else if (way == std::ios_base::cur) diff --git a/libinterp/version.in.h b/libinterp/version.in.h diff --git a/scripts/help/unimplemented.m b/scripts/help/unimplemented.m diff --git a/scripts/miscellaneous/info.m b/scripts/miscellaneous/info.m diff --git a/scripts/plot/subplot.m b/scripts/plot/subplot.m