From c979ef393b18bc384c75ba6e351e10d7c48ee23a Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Thu, 11 Apr 2013 08:17:17 +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..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 '#': { -- cgit v1.2.3