lyx_mirror/development/cmake
Jean-Marc Lasgouttes d2ea4aaebb Fix bug #8537: LyX creates the environment variable LC_ALL
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.
2013-02-15 18:23:48 +01:00
..
boost cmake: we have 2011 and more white space changes, won't call "use tabs" ;) 2011-01-10 23:24:00 +00:00
doc Backport r38791, Replace a perl-script with the python version 2011-05-24 18:36:27 +00:00
intl cmake: we have 2011 and more white space changes, won't call "use tabs" ;) 2011-01-10 23:24:00 +00:00
lyx2lyx Do not py-compile also on cmake build, backport r40648 2012-03-15 17:24:07 +01:00
man cmake: we have 2011 and more white space changes, won't call "use tabs" ;) 2011-01-10 23:24:00 +00:00
modules find gettext 2011-11-26 10:04:32 +00:00
po Re-added Package.cpp to source ot translations 2011-09-30 10:26:15 +00:00
scripts Do not py-compile also on cmake build, backport r40648 2012-03-15 17:24:07 +01:00
src Cmake build: Missing include path due to change of PreviewLoader.cpp 2012-12-13 09:12:40 +01:00
build.bat cmake/build.bat: update the script to Git and use Peter's suggestions 2012-03-16 02:19:49 +01:00
CMakeLists.txt Creating package missed the patch-version number 2012-07-17 11:19:22 +02:00
config.cpp.cmake rename config.C.cmake to config.cpp.cmake 2007-10-07 11:10:45 +00:00
config.h.cmake revert r38758 as discussed in http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg169087.html 2011-05-15 17:14:31 +00:00
configCompiler.h.cmake add missing check for setenv: environment.cpp and POSIX standards prefer setenv 2010-08-25 05:57:06 +00:00
configCompiler.h.msvc revert r38758 as discussed in http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg169087.html 2011-05-15 17:14:31 +00:00
ConfigureChecks.cmake Fix bug #8537: LyX creates the environment variable LC_ALL 2013-02-15 18:23:48 +01:00
Install.cmake Do not py-compile also on cmake build, backport r40648 2012-03-15 17:24:07 +01:00
LyX_description.txt Kornel really needs write access 2009-02-15 14:02:26 +00:00
LyX_license.txt Kornel really needs write access 2009-02-15 14:02:26 +00:00
LyX_summary.txt Kornel really needs write access 2009-02-15 14:02:26 +00:00
lyx.rc cmake: add icon on Windows 2010-06-30 08:35:52 +00:00
pcheaders.h cmake: add pch for gcc, it's sooo hairy, disable by default 2009-12-03 21:58:44 +00:00
PyCompile.cmake revert r38758 as discussed in http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg169087.html 2011-05-15 17:14:31 +00:00