projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1cffd7
)
Evas language: Fix language from locale function.
author
Tom Hacohen
<tom@stosb.com>
Tue, 17 Nov 2015 12:07:39 +0000
(12:07 +0000)
committer
Tom Hacohen
<tom@stosb.com>
Tue, 17 Nov 2015 12:07:42 +0000
(12:07 +0000)
This function was trying to infer from the LANG env var, though it should
have just queried the locale all along, as the language we want is the
system's text language, and not necessarily the LANG variable's value.
@fix.
src/lib/evas/common/language/evas_language_utils.c
patch
|
blob
|
history
diff --git
a/src/lib/evas/common/language/evas_language_utils.c
b/src/lib/evas/common/language/evas_language_utils.c
index
c9efc3b
..
7d13965
100644
(file)
--- a/
src/lib/evas/common/language/evas_language_utils.c
+++ b/
src/lib/evas/common/language/evas_language_utils.c
@@
-21,6
+21,7
@@
#endif
#include <stdlib.h>
+#include <locale.h>
#include <Eina.h>
@@
-134,7
+135,7
@@
evas_common_language_from_locale_get(void)
if (*lang) return lang;
const char *locale;
- locale =
getenv("LANG"
);
+ locale =
setlocale(LC_MESSAGES, NULL
);
if (locale && *locale)
{
char *itr;