mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
81d863fd41
The current code is not able to unset an environment variable, only to set it to an empty value. This patch refactors a bit the Message class and uses a new EnvChanger helper class that allows to change temporarily an environment variable and that is able to unset variables if needed. The patch also adds new functions hasEnv and unsetEnv in environment.cpp. Open issues: * there may be systems where unsetenv is not available and putenv("name=") does not do the right thing; * unsetenv may lead to leaks on some platforms. * when using unsetenv, we may need to remove strings from the internal map that setEnv uses. |
||
---|---|---|
.. | ||
doc | ||
man | ||
modules | ||
po | ||
scripts | ||
build.bat | ||
config.cpp.cmake | ||
config.h.cmake | ||
configCompiler.h.cmake | ||
configCompiler.h.msvc | ||
ConfigureChecks.cmake | ||
dmg | ||
Install.cmake | ||
lyx_date.h.cmake | ||
LyX_description.txt | ||
LyX_license.txt | ||
LyX_summary.txt | ||
lyx.rc | ||
LyxPackaging.cmake | ||
pcheaders.h | ||
PyCompile.cmake | ||
TODO.txt |