summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-02-05 12:39:37 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-02-05 12:39:37 +0100
commit0de4b0b043f75725487b3db77b8e176273ff418a (patch)
tree1973d331417c17571402b31b6034b13f9f062f74 /recording.c
parent204f4a322e378219350d7ab8961719d2dc55a8c6 (diff)
downloadvdr-0de4b0b043f75725487b3db77b8e176273ff418a.tar.gz
vdr-0de4b0b043f75725487b3db77b8e176273ff418a.tar.bz2
Fixed multiple entries of the same subdirectory in the "Recordings" menu
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/recording.c b/recording.c
index 5c57e187..e7efba0b 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 1.133 2006/01/20 17:18:59 kls Exp $
+ * $Id: recording.c 1.134 2006/02/05 12:34:08 kls Exp $
*/
#include "recording.h"
@@ -604,6 +604,7 @@ char *cRecording::SortName(void) const
{
if (!sortBuffer) {
char *s = StripEpisodeName(strdup(FileName() + strlen(VideoDirectory) + 1));
+ strreplace(s, '/', 'a'); // some locales ignore '/' when sorting
int l = strxfrm(NULL, s, 0) + 1;
sortBuffer = MALLOC(char, l);
strxfrm(sortBuffer, s, l);