]> git.lyx.org Git - lyx.git/blobdiff - src/support/filetools.cpp
Stop using a GCC extension for an unprintable character in regex.
[lyx.git] / src / support / filetools.cpp
index cbbc2ddca053f1f1281c543b4be4dbfa3fbf00cd..41e508b47f9a54dbde32d604b2b3c4099b5a73bf 100644 (file)
@@ -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;