1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

No longer using characters 0x01 and 0x02 for mapping single quote and slash in recording names

This commit is contained in:
Klaus Schmidinger 2006-04-16 12:55:28 +02:00
parent 58facabfb6
commit 8c6deb20f2
4 changed files with 13 additions and 3 deletions

View File

@ -1685,6 +1685,8 @@ Patrick Fischer <patrick_fischer@gmx.de>
for suggesting that the cTimer constructor should take an optional cChannel for suggesting that the cTimer constructor should take an optional cChannel
for suggesting that any cReceivers still attached to a cDevice when that device for suggesting that any cReceivers still attached to a cDevice when that device
switches to a different transponder shall be automatically detached switches to a different transponder shall be automatically detached
for reporting that characters 0x01 and 0x02 in recording names were a problem
with XML
Ralf Müller <ralf@bj-ig.de> Ralf Müller <ralf@bj-ig.de>
for a patch that was used to implement cUnbufferedFile for a patch that was used to implement cUnbufferedFile

View File

@ -4606,3 +4606,8 @@ Video Disk Recorder Revision History
- Changed the behaviour of the "Use small font" setup option to *always* use the small - Changed the behaviour of the "Use small font" setup option to *always* use the small
font if set to '3' - even if it would have been a fixed font (suggested by Ronny font if set to '3' - even if it would have been a fixed font (suggested by Ronny
Kornexl). Kornexl).
- No longer using characters 0x01 and 0x02 for mapping single quote and slash in
recording names (thanks to Patrick Fischer for reporting that this was a problem
with XML). The single quote is not mapped at all, and the slash is interchanged
with the tilde. Existing recordings will be handled like before, so there is
no need to actually rename them.

4
menu.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: menu.c 1.433 2006/04/16 10:09:21 kls Exp $ * $Id: menu.c 1.434 2006/04/16 12:20:46 kls Exp $
*/ */
#include "menu.h" #include "menu.h"
@ -2036,7 +2036,7 @@ eOSState cMenuRecordings::Commands(eKeys Key)
cRecording *recording = GetRecording(ri); cRecording *recording = GetRecording(ri);
if (recording) { if (recording) {
char *parameter = NULL; char *parameter = NULL;
asprintf(&parameter, "'%s'", recording->FileName()); asprintf(&parameter, "\"%s\"", *strescape(recording->FileName(), "\"$"));
cMenuCommands *menu; cMenuCommands *menu;
eOSState state = AddSubMenu(menu = new cMenuCommands(tr("Recording commands"), &RecordingCommands, parameter)); eOSState state = AddSubMenu(menu = new cMenuCommands(tr("Recording commands"), &RecordingCommands, parameter));
free(parameter); free(parameter);

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: recording.c 1.144 2006/04/09 13:49:51 kls Exp $ * $Id: recording.c 1.145 2006/04/16 12:43:58 kls Exp $
*/ */
#include "recording.h" #include "recording.h"
@ -389,7 +389,10 @@ bool cRecordingInfo::Write(FILE *f, const char *Prefix) const
struct tCharExchange { char a; char b; }; struct tCharExchange { char a; char b; };
tCharExchange CharExchange[] = { tCharExchange CharExchange[] = {
{ '~', '/' }, { '~', '/' },
{ '/', '~' },
{ ' ', '_' }, { ' ', '_' },
// backwards compatibility:
{ '\'', '\'' },
{ '\'', '\x01' }, { '\'', '\x01' },
{ '/', '\x02' }, { '/', '\x02' },
{ 0, 0 } { 0, 0 }