---
src/stk.c |6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/stk.c b/src/stk.c
index 68b6240..94ad396 100644
--- a/src/stk.c
+++ b/src/stk.c
@@ -2177,8 +2177,9 @@ static void get_lang(struct stk_response *rsp, struct
ofono_stk *stk)
l = getenv("LANG");
if (l == NULL) {
- rsp->result.type = STK_RESULT_TYPE_NOT_CAPABLE;
- goto out;
+ l = "en";
+ ofono_warn("LANG environment variable not set"
+ " - defaulting to en");
}
memcpy(lang, l, 2);
@@ -2187,7 +2188,6 @@ static void get_lang(struct stk_response *rsp, struct
ofono_stk *stk)
rsp->result.type = STK_RESULT_TYPE_SUCCESS;
rsp->provide_local_info.language = lang;
-out:
if (stk_respond(stk, rsp, stk_command_cb))
stk_command_cb(&failure, stk);
}
--
1.7.0.4
___
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono