summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-08-19 16:04:22 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2007-08-19 16:04:22 +0200
commitc9ccd0ae1da627b293d27d2b85f8460afdb852ed (patch)
tree899257fa00516bf02708c02b356b0bdb1d6107a3
parent69db18ef8f5acf0006f36c3fc8cfcf6b75be0431 (diff)
downloadvdr-c9ccd0ae1da627b293d27d2b85f8460afdb852ed.tar.gz
vdr-c9ccd0ae1da627b293d27d2b85f8460afdb852ed.tar.bz2
Fixed handling locale directories with a large number of entries
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY5
-rw-r--r--config.h10
-rw-r--r--i18n.c4
4 files changed, 13 insertions, 7 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 68abd99a..9193800d 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -2062,6 +2062,7 @@ Anssi Hannula <anssi.hannula@gmail.com>
for suggesting to make the "Setup/OSD/Language" menu only show those languages
that actually have a locale
for suggesting to use setenv() instead of setlocale() to set the language for gettext()
+ for fixing handling locale directories with a large number of entries
Antti Hartikainen <ami+vdr@ah.fi>
for updating 'S13E' in 'sources.conf'
diff --git a/HISTORY b/HISTORY
index 0677dbcc..4dee2ac5 100644
--- a/HISTORY
+++ b/HISTORY
@@ -5379,3 +5379,8 @@ Video Disk Recorder Revision History
vdr.mo. Text files for plugins are now named "vdr-name.mo", when "name" is the
name of the plugin. The "newplugin" script has been changed accordingly, and
plugin authors should change their Makefiles, too.
+
+2007-08-19: Version 1.5.9
+
+- Fixed handling locale directories with a large number of entries (thanks to
+ Anssi Hannula).
diff --git a/config.h b/config.h
index 52688530..a5efb9b7 100644
--- a/config.h
+++ b/config.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.h 1.297 2007/08/12 20:38:10 kls Exp $
+ * $Id: config.h 1.298 2007/08/19 16:02:50 kls Exp $
*/
#ifndef __CONFIG_H
@@ -22,13 +22,13 @@
// VDR's own version number:
-#define VDRVERSION "1.5.8"
-#define VDRVERSNUM 10508 // Version * 10000 + Major * 100 + Minor
+#define VDRVERSION "1.5.9"
+#define VDRVERSNUM 10509 // Version * 10000 + Major * 100 + Minor
// The plugin API's version number:
-#define APIVERSION "1.5.8"
-#define APIVERSNUM 10508 // Version * 10000 + Major * 100 + Minor
+#define APIVERSION "1.5.9"
+#define APIVERSNUM 10509 // Version * 10000 + Major * 100 + Minor
// When loading plugins, VDR searches them by their APIVERSION, which
// may be smaller than VDRVERSION in case there have been no changes to
diff --git a/i18n.c b/i18n.c
index 15853a0f..c17dae70 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.312 2007/08/19 14:10:46 kls Exp $
+ * $Id: i18n.c 1.313 2007/08/19 16:03:03 kls Exp $
*
*
*/
@@ -112,7 +112,7 @@ void I18nInitialize(void)
for (int i = 0; i < Locales.Size(); i++) {
cString FileName = cString::sprintf("%s/%s/LC_MESSAGES/vdr.mo", I18nLocaleDir, Locales[i]);
if (access(FileName, F_OK) == 0) { // found a locale with VDR texts
- if (i < I18N_MAX_LANGUAGES - 1) {
+ if (NumLocales < I18N_MAX_LANGUAGES - 1) {
SetEnvLanguage(Locales[i]);
NumLocales++;
if (strstr(OldLocale, Locales[i]) == OldLocale)