diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-09-01 12:59:35 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-09-01 12:59:35 +0200 |
commit | 4ae577fcb4a323af74d05645e34f31f893b4c6e7 (patch) | |
tree | 86b4d9b764dbc9118f2ef61f8692938f1dfa733a /vdr.c | |
parent | c2e2673629c0a721e721f64e0dbec85a02f7b013 (diff) | |
download | vdr-4ae577fcb4a323af74d05645e34f31f893b4c6e7.tar.gz vdr-4ae577fcb4a323af74d05645e34f31f893b4c6e7.tar.bz2 |
Added LC_ALL to the checks for UTF-8 at startup
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/vdr * - * $Id: vdr.c 1.278 2006/08/05 10:46:38 kls Exp $ + * $Id: vdr.c 1.279 2006/09/01 12:57:44 kls Exp $ */ #include <getopt.h> @@ -450,6 +450,7 @@ int main(int argc, char *argv[]) // Check for UTF-8 and exit if present - asprintf() will fail if it encounters 8 bit ASCII codes char *LangEnv; if ((LangEnv = getenv("LANG")) != NULL && strcasestr(LangEnv, "utf") || + (LangEnv = getenv("LC_ALL")) != NULL && strcasestr(LangEnv, "utf") || (LangEnv = getenv("LC_CTYPE")) != NULL && strcasestr(LangEnv, "utf")) { fprintf(stderr, "vdr: please turn off UTF-8 before starting VDR\n"); return 2; |