1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 10:35:10 +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:
Brenden Matthews 2005-07-28 03:34:28 +00:00
parent bb1a43486d
commit 3619ed071d

View File

@ -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, "")) {