# HG changeset patch # User Markus Mützel # Date 1702227704 -3600 # Node ID ebace755ea13c69d0be457510b23db413c73bf57 # Parent 2cd67bae425f345f28c8996f2da3f2239d20c5fb# Parent 19f51c7fa3415c1ac968f34f3e6321c34cb2a2ae maint: Merge default to bytecode-interpreter. diff -r 2cd67bae425f -r ebace755ea13 liboctave/util/glob-match.cc --- a/liboctave/util/glob-match.cc Sun Dec 10 15:51:11 2023 +0100 +++ b/liboctave/util/glob-match.cc Sun Dec 10 18:01:44 2023 +0100 @@ -67,7 +67,7 @@ #if defined (OCTAVE_USE_WINDOWS_API) m_glob = nullptr; #else - m_glob {new glob_match (pattern)}; + m_glob = std::unique_ptr {new glob_match {pattern}}; #endif } diff -r 2cd67bae425f -r ebace755ea13 scripts/startup/site-rcfile --- a/scripts/startup/site-rcfile Sun Dec 10 15:51:11 2023 +0100 +++ b/scripts/startup/site-rcfile Sun Dec 10 18:01:44 2023 +0100 @@ -5,3 +5,20 @@ ## ## This file contains commands that should be executed each time Octave starts ## for every user at this site. + +if ispc () && isguirunning () ... + && ~strcmp (winqueryreg ("HKEY_CURRENT_USER", 'Console\%%Startup', "DelegationConsole"), ... + "{B23D10C0-E52E-411E-9D5B-C09FDF709C7D}") + warn_str = ["WARNING: You are using an incompatible Windows configuration!\n", ... + "Microsoft's new Terminal App is not compatible with Octave.\n", ... + "Please follow the instructions on the following page and set the ", ... + "default terminal to \"Windows Console Host\":\n", ... + "https://octave.discourse.group/t/4981/"]; + warning ("octave:terminal-app", warn_str); + answer = questdlg ([warn_str, "\n\nWould you like to open that page in your browser?"], ... + "Incompatible Configuration", "Yes", "No", "Yes"); + if strcmp (answer, "Yes") + system ("start https://octave.discourse.group/t/4981/"); + endif + clear warn_str answer +endif