From 92d452a3b984b07e834f0528e8b3f9a8cd18371f Mon Sep 17 00:00:00 2001 From: woongsuk cho Date: Wed, 13 Sep 2017 01:43:57 +0000 Subject: [PATCH] Revert "temporal patch for setting LANG environment value" This reverts commit c9e5d8e142aa02dfeffe1d31ff819fffd899ae5a. Change-Id: I0f09e4cedbbd0c1889d59f1d2a98c45261a7a6b8 (cherry picked from commit 6467e185cd4a1b721ad71ac419697e381eb8115d) --- NativeLauncher/launcher/dotnet/dotnet_launcher.cc | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/NativeLauncher/launcher/dotnet/dotnet_launcher.cc b/NativeLauncher/launcher/dotnet/dotnet_launcher.cc index b268357..6adff4b 100644 --- a/NativeLauncher/launcher/dotnet/dotnet_launcher.cc +++ b/NativeLauncher/launcher/dotnet/dotnet_launcher.cc @@ -21,8 +21,6 @@ #include #include -#include - #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; -- 2.7.4