Mercurial > octave
view test/bug-54490.tst @ 28191:6ea1e96b69d4 stable
canonicalize_file_name: Fix for non-existent file on Windows (bug #58118).
* file-ops.cc (canonicalize_file_name): Use temporary variable for
operations on a copy of the static input string in if-block for UNC
paths.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Tue, 07 Apr 2020 08:42:31 +0200 |
parents | cc9da21511c1 |
children | 2838bbd84b87 |
line wrap: on
line source
%!function out = bug54490 () %! global k; %! k = 1; %! out = 3; %!endfunction %!test %! global k; %! k = 2; %! a = [5, 6]; %! a(k) = bug54490 (); %! assert (a, [5, 3]); %! k = 2; %! a = [5, 6]; %! [a(k)] = bug54490 (); %! assert (a, [5, 3]); %! clear -global k; # cleanup after test