Revert "temporal patch for setting LANG environment value" 66/149666/1
authorwoongsuk cho <ws77.cho@samsung.com>
Wed, 13 Sep 2017 01:43:57 +0000 (01:43 +0000)
committerwoongsuk cho <ws77.cho@samsung.com>
Wed, 13 Sep 2017 01:43:57 +0000 (01:43 +0000)
This reverts commit c9e5d8e142aa02dfeffe1d31ff819fffd899ae5a.

Change-Id: I0f09e4cedbbd0c1889d59f1d2a98c45261a7a6b8

NativeLauncher/launcher/dotnet/dotnet_launcher.cc

index b26835743e867c7e88e2cbb2c3d7bcd75d3e731c..6adff4b09a01dd0c46a6b18db5e89f6fe2d4411d 100644 (file)
@@ -21,8 +21,6 @@
 #include <fstream>
 #include <vector>
 
-#include <vconf.h>
-
 #include "utils.h"
 #include "log.h"
 #include "launcher.h"
@@ -290,27 +288,8 @@ void CoreRuntime::dispose()
        _DBG("Dotnet runtime disposed");
 }
 
-static void setLang()
-{
-       char *lang;
-       lang = vconf_get_str(VCONFKEY_LANGSET);
-       if (lang) {
-               _DBG("setenv for language setting : %s", lang);
-               setenv("LANG", lang, 1);
-               setenv("LC_MESSAGES", lang, 1);
-       }
-}
-
 int CoreRuntime::launch(const char* appId, const char* root, const char* path, int argc, char* argv[])
 {
-       // temporal patch to set LANG for coreclr.
-       // below code will be removed after applying appfw patch.
-       setLang();
-
-       vconf_notify_key_changed(VCONFKEY_LANGSET, [](keynode_t* node, void* user_data) {
-               setLang();
-       }, NULL);
-
        if (path == nullptr) {
                _ERR("executable path is null");
                return 1;