diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 7e565ebb..2a122d57 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -1004,9 +1004,8 @@ Andreas Mair for fixing initializing the timer's flags in the cTimer copy constructor for reporting a crash in case CutRecording() is called from a plugin for fixing the type of MBperMinute in cVideoDiskUsage::HasChanged() - for reporting a bug in sorting recordings in case the locale ignores non-alphanumeric - characters, or if two folders have the same name, but one of them ends in an - additional digit, as in "abc" and "abc2" + for reporting a bug in sorting recordings in case two folders have the same name, + but one of them ends in an additional digit, as in "abc" and "abc2" Olivier Jacques ) for translating OSD texts to the French language diff --git a/HISTORY b/HISTORY index ddb9ab9c..05469c6e 100644 --- a/HISTORY +++ b/HISTORY @@ -7513,9 +7513,8 @@ Video Disk Recorder Revision History parameter ONEDIR=1 (using Make.config) to have all files in one /video directory as before. - Fixed the example for cReceiver in PLUGINS.html. -- Fixed sorting recordings in case the locale ignores non-alphanumeric characters, - or if two folders have the same name, but one of them ends in an additional digit, - as in "abc" and "abc2" (reported by Andreas Mair). +- Fixed sorting recordings in case two folders have the same name, but one of them + ends in an additional digit, as in "abc" and "abc2" (reported by Andreas Mair). - Added "repeat" function when using the keyboard to control VDR (thanks to Reinhard Nissl). - The SVDRP command LSTR now knows the additional parameter "path", which can be 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);