* environment.cpp:

- correct return value of setenv.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28183 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-01-16 14:46:35 +00:00
parent 8bc907d5ad
commit d44dc8f129
2 changed files with 3 additions and 1 deletions

View File

@ -62,7 +62,7 @@ bool setEnv(string const & name, string const & value)
string const encoded = to_local8bit(from_utf8(value));
#if defined (HAVE_SETENV)
return ::setenv(name.c_str(), encoded.c_str(), true);
return ::setenv(name.c_str(), encoded.c_str(), 1) == 0;
#elif defined (HAVE_PUTENV)
static map<string, string> varmap;
varmap[name] = name + '=' + encoded;

View File

@ -175,6 +175,8 @@ What's new
- Fix enabling of height widgets in the Box dialog.
- Fix a locale debug message.
* DOCUMENTATION AND LOCALIZATION