summaryrefslogtreecommitdiff
path: root/i18n.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-10-07 12:22:04 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-10-07 12:22:04 +0200
commit94e43892a54f74b34e8a06d79784a225cfd8333d (patch)
tree3dbf1d27631ebfa4c880fb9c531727bc06d9f903 /i18n.c
parent2d68b323c74f3ba2d03d843132ebcec1d712b982 (diff)
downloadvdr-94e43892a54f74b34e8a06d79784a225cfd8333d.tar.gz
vdr-94e43892a54f74b34e8a06d79784a225cfd8333d.tar.bz2
Changed the I18nNormalizeLanguageCode() check to also allow blanks (and all other printable characters) in the language codes
Diffstat (limited to 'i18n.c')
-rw-r--r--i18n.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/i18n.c b/i18n.c
index 34c81f62..67d2927b 100644
--- a/i18n.c
+++ b/i18n.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: i18n.c 1.282 2006/09/16 09:08:30 kls Exp $
+ * $Id: i18n.c 1.283 2006/10/07 12:18:10 kls Exp $
*
* Translations provided by:
*
@@ -6243,9 +6243,9 @@ int I18nLanguageIndex(const char *Code)
const char *I18nNormalizeLanguageCode(const char *Code)
{
- if (Code[0] && !isalnum(Code[0]) || Code[1] && !isalnum(Code[1]) || Code[2] && !isalnum(Code[2])) {
+ if (Code[0] && !isprint(Code[0]) || Code[1] && !isprint(Code[1]) || Code[2] && !isprint(Code[2])) {
// ISO 639 language codes are defined as alphabetical characters, but digits are apparently
- // also used, for instance for "2ch"
+ // also used, for instance for "2ch". There are even channels that use blank characters.
//dsyslog("invalid language code: '%s'", Code);
return "???";
}