mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-25 12:10:03 +00:00
make locale stuff HOPEFULLY work properly
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@20 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
bb1a43486d
commit
3619ed071d
3
conky.c
3
conky.c
@ -3448,7 +3448,8 @@ else
|
||||
if (((s = getenv("LC_ALL")) && *s) ||
|
||||
((s = getenv("LC_CTYPE")) && *s) ||
|
||||
((s = getenv("LANG")) && *s)) {
|
||||
if (strstr(s, "UTF-8") || strstr(s, "utf-8"))
|
||||
if (strstr(s, "UTF-8") || strstr(s, "utf-8")
|
||||
|| strstr(s, "UTF8") || strstr(s, "utf8"))
|
||||
utf8_mode = 1;
|
||||
}
|
||||
if (!setlocale(LC_CTYPE, "")) {
|
||||
|
Loading…
Reference in New Issue
Block a user