From d8c6bc7c1f23ae984c016ffd3a809bde517a24ce Mon Sep 17 00:00:00 2001 From: Thibaut Cuvelier Date: Sat, 13 Feb 2021 18:23:01 +0100 Subject: [PATCH] Stop using a GCC extension for an unprintable character in regex. --- src/support/filetools.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/support/filetools.cpp b/src/support/filetools.cpp index cbbc2ddca0..41e508b47f 100644 --- a/src/support/filetools.cpp +++ b/src/support/filetools.cpp @@ -718,15 +718,15 @@ string const replaceEnvironmentPath(string const & path) } string env_var = getEnv(what.str(2)); if (env_var.empty()) { - // temporarily use escape (0x1B) in place of $ + // temporarily use alert/bell (0x07) in place of $ if (brackets) - env_var = "\e{" + what.str(2) + '}'; + env_var = "\a{" + what.str(2) + '}'; else - env_var = "\e" + what.str(2); + env_var = "\a" + what.str(2); } result = what.str(1) + env_var + what.str(3); } - return subst(result, '\e', '$'); + return subst(result, '\a', '$'); } catch (exception const & e) { LYXERR0("Something is very wrong: " << e.what()); return path; -- 2.39.2