Jürgen Spitzmüller <juer...@spitzmueller.org> writes:
> BTW, I noticed that LyX::setRcGuiLanguage() always reports a failure
> when trying to set a different language from rc.gui_language. My
> inpression is that this report is wrong. Looking at Environment.cpp, I
> see the bool SetEnv return ::setenv(name.c_str(), encoded.c_str(),
> true); However, isn't setenv supposed to return "0" on success, and
> "-1" in case of failure?

You are definitely right. The return value should be ::setenv(...) == 0,
like for putenv.

JMarc

Reply via email to