#include <fstream>
#include <vector>
+#include <vconf.h>
+
#include "utils.h"
#include "log.h"
#include "launcher.h"
_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;