summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-01-16 14:19:11 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2013-01-16 14:19:11 +0100
commita9099cb4d30d8ecf4acb9a4cf31f3b818599c62e (patch)
tree19d178000f5c7de3b42b5676060d5394939b8e83 /recording.c
parent89dc5927278d7ff348c380ab58e66e6b7642530b (diff)
downloadvdr-a9099cb4d30d8ecf4acb9a4cf31f3b818599c62e.tar.gz
vdr-a9099cb4d30d8ecf4acb9a4cf31f3b818599c62e.tar.bz2
Revoked 'Fixed sorting recordings in case the locale ignores non-alphanumeric characters'
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/recording.c b/recording.c
index 09c238df..9cd05223 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 2.82 2013/01/13 11:47:44 kls Exp $
+ * $Id: recording.c 2.83 2013/01/16 14:17:44 kls Exp $
*/
#include "recording.h"
@@ -841,12 +841,6 @@ char *cRecording::SortName(void) const
char *s = (RecordingsSortMode == rsmName) ? strdup(FileName() + strlen(VideoDirectory))
: StripEpisodeName(strdup(FileName() + strlen(VideoDirectory)));
strreplace(s, '/', '0'); // some locales ignore '/' when sorting
- for (char *p = s; *p; p++) {
- if (*p == '/')
- *p = '0'; // some locales ignore '/' when sorting
- else if (*p < '0')
- *p = ' '; // avoids multiple occurences of the same folder in case the locale ignores non-alphanumeric characters when sorting
- }
int l = strxfrm(NULL, s, 0) + 1;
*sb = MALLOC(char, l);
strxfrm(*sb, s, l);