summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-04-11 08:17:17 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2013-04-11 08:17:17 +0200
commitc979ef393b18bc384c75ba6e351e10d7c48ee23a (patch)
treed7b386ae4eff923f67d7c588972c5d8ba98e30d0 /recording.c
parent0e4b404102b5220b649bf338988378bc6e72eb68 (diff)
downloadvdr-c979ef393b18bc384c75ba6e351e10d7c48ee23a.tar.gz
vdr-c979ef393b18bc384c75ba6e351e10d7c48ee23a.tar.bz2
Fixed handling '/' and '~' in recording file names in case DirectoryEncoding is used
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/recording.c b/recording.c
index f43ce52e..366c5c6d 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.91 2013/03/11 10:34:41 kls Exp $
+ * $Id: recording.c 3.1 2013/04/11 08:14:01 kls Exp $
*/
#include "recording.h"
@@ -561,6 +561,7 @@ char *ExchangeChars(char *s, bool ToFileSystem)
// characters that can be mapped to other characters:
case ' ': *p = '_'; break;
case FOLDERDELIMCHAR: *p = '/'; break;
+ case '/': *p = FOLDERDELIMCHAR; break;
// characters that have to be encoded:
default:
if (NeedsConversion(p)) {
@@ -583,6 +584,7 @@ char *ExchangeChars(char *s, bool ToFileSystem)
switch (*p) {
// mapped characters:
case '_': *p = ' '; break;
+ case FOLDERDELIMCHAR: *p = '/'; break;
case '/': *p = FOLDERDELIMCHAR; break;
// encoded characters:
case '#': {