diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-09-29 10:05:49 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-09-29 10:05:49 +0200 |
commit | 62dee6514ae8a704087206cede6831e049c72000 (patch) | |
tree | 0ade49f2db72aa303f5e1b79e5653f16792ed615 /recording.c | |
parent | 6f1577a65954ee8a39af033ea96b92409c548eeb (diff) | |
download | vdr-62dee6514ae8a704087206cede6831e049c72000.tar.gz vdr-62dee6514ae8a704087206cede6831e049c72000.tar.bz2 |
Fixed sorting folders before recordings in case of UTF-8
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/recording.c b/recording.c index 6121ee27..dc77a84c 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.62 2012/09/17 08:54:00 kls Exp $ + * $Id: recording.c 2.63 2012/09/29 10:04:55 kls Exp $ */ #include "recording.h" @@ -820,9 +820,13 @@ char *cRecording::StripEpisodeName(char *s) t++; } if (s1 && s2) { + // To have folders sorted before plain recordings, the '/' s1 points to + // is replaced by the character 'b'. All other slashes will be replaced + // by 'a' in SortName() (see below), which will result in the desired + // sequence: + *s1 = 'b'; s1++; memmove(s1, s2, t - s2 + 1); - *s1 = 0xFF; // sorts folders before plain recordings } return s; } |