diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-02-12 15:07:09 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-02-12 15:07:09 +0100 |
commit | a481a5200c266dd387d1dca8a0253abfb208f031 (patch) | |
tree | 92bdaf768efa12a3da1a1e34927a6e33f629459e /vdr.c | |
parent | dc22034e72d8695dddf1fe511012f3afd1a7abbd (diff) | |
download | vdr-a481a5200c266dd387d1dca8a0253abfb208f031.tar.gz vdr-a481a5200c266dd387d1dca8a0253abfb208f031.tar.bz2 |
Fixed a typo in detecting UTF-8
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/vdr * - * $Id: vdr.c 1.201 2005/01/30 14:15:50 kls Exp $ + * $Id: vdr.c 1.202 2005/02/12 15:06:16 kls Exp $ */ #include <getopt.h> @@ -100,8 +100,8 @@ 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_TYPE")) != NULL && strcasestr(LangEnv, "utf")) { + if ((LangEnv = getenv("LANG")) != 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; } |