From 1b1dc6d77569582c05de049d399591dd13a9e24a Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Thu, 11 Apr 2013 08:24:04 +0200 Subject: Fixed handling '/' and '~' in recording file names in case DirectoryEncoding is used --- recording.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'recording.c') diff --git a/recording.c b/recording.c index f43ce52e..b1ca9c5a 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 2.91.1.1 2013/04/11 08:20:03 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 '#': { -- cgit v1.2.3