mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
* 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:
parent
8bc907d5ad
commit
d44dc8f129
@ -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;
|
||||
|
@ -175,6 +175,8 @@ What's new
|
||||
|
||||
- Fix enabling of height widgets in the Box dialog.
|
||||
|
||||
- Fix a locale debug message.
|
||||
|
||||
|
||||
* DOCUMENTATION AND LOCALIZATION
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user