changeset 31155:929c05cf2afa

maint: Merge stable to default.
author Markus Mützel <markus.muetzel@gmx.de>
date Wed, 27 Jul 2022 13:27:00 +0200
parents 8f67b53ac9ff (current diff) ef45a559f592 (diff)
children ae3938c7eb67
files etc/NEWS.7.md libinterp/octave-value/ov.cc
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/etc/NEWS.7.md	Tue Jul 26 17:20:13 2022 -0700
+++ b/etc/NEWS.7.md	Wed Jul 27 13:27:00 2022 +0200
@@ -37,6 +37,12 @@
 - `inputParser`: Correctly handle cell default values for optional parameters (bug #62639).
 - `factor.m`: Performance tweak to avoid division in certain cases.
 - Fix regression with `\color[rgb]` TeX pattern (bug #62668).
+- `regexp`: Check pattern length before accessing it (bug #62704).
+- `pkg.m`: Create `PREFIX` and `ARCHPREFIX` directories (bug #62681).
+- `pkg`: Replace `OCTAVE_HOME` in `PREFIX` and `ARCHPREFIX` independently (bug #62681).
+- `randmtzig.cc`: Add missing `#include <ctime>` (bug #62750).
+- `pkg`: Fix formatting of `copyfile` message (bug #62769).
+- `pkg`: Escape special characters in `OCTAVE_HOME` for `regexprep` (bug #62681).
 
 ### GUI
 
@@ -65,6 +71,7 @@
 - `primes.m`: Move code examples before math theory.
 - `primes.m`: Mark variables in docstring with `@var{}` macro.
 - Rewrite section on automatic type conversions (bug #62283).
+- `subsasgn`: Correct example code (bug #33221).
 
 
 Summary of important user-visible changes for version 7 (2022-04-06)
--- a/libinterp/octave-value/ov.cc	Tue Jul 26 17:20:13 2022 -0700
+++ b/libinterp/octave-value/ov.cc	Wed Jul 27 13:27:00 2022 +0200
@@ -3869,7 +3869,7 @@
 val = magic (3);
 idx.type = "()";
 idx.subs = @{":", 1:2@};
-subsasgn (val, idx, 0)
+val = subsasgn (val, idx, 0)
      @result{}  [ 0   0   6
            0   0   7
            0   0   2 ]