]> git.lyx.org Git - lyx.git/blobdiff - src/support/Messages.cpp
Use *.* to select all files in the file selection dialog on Windows. Using shortcuts...
[lyx.git] / src / support / Messages.cpp
index 5d2a554d83917cc0ae1b8a226e28d98e9acc2fc2..a79723c1327448665d08f0654f0fa1b29fddfa9d 100644 (file)
@@ -111,8 +111,8 @@ docstring const Messages::get(string const & m) const
 
        // The string was not found, use gettext to generate it
 
-       string const oldLANGUAGE = getEnv("LANGUAGE");
-       string const oldLC_ALL = getEnv("LC_ALL");
+       static string const oldLANGUAGE = getEnv("LANGUAGE");
+       static string const oldLC_ALL = getEnv("LC_ALL");
        if (!lang_.empty()) {
                // This GNU extension overrides any language locale
                // wrt gettext.