mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
The SVDRP signon message now indicates the character encoding in use
This commit is contained in:
parent
2af47cfb18
commit
4ecf7e1728
4
HISTORY
4
HISTORY
@ -5775,6 +5775,10 @@ Video Disk Recorder Revision History
|
|||||||
by broadcasters from the beginning.
|
by broadcasters from the beginning.
|
||||||
- Added missing description of the 'S' channel parameter to vdr.5 (reported by
|
- Added missing description of the 'S' channel parameter to vdr.5 (reported by
|
||||||
Reinhard Nissl).
|
Reinhard Nissl).
|
||||||
|
- The SVDRP signon message now indicates the character encoding in use, as in
|
||||||
|
"220 video SVDRP VideoDiskRecorder 1.7.1; Fri May 2 16:17:10 2008; ISO-8859-1".
|
||||||
|
This may be useful for instance for external tools that provide EPG data, so that
|
||||||
|
they can correctly encode the strings.
|
||||||
|
|
||||||
2008-04-19: Version 1.6.0-2
|
2008-04-19: Version 1.6.0-2
|
||||||
|
|
||||||
|
4
svdrp.c
4
svdrp.c
@ -10,7 +10,7 @@
|
|||||||
* and interact with the Video Disk Recorder - or write a full featured
|
* and interact with the Video Disk Recorder - or write a full featured
|
||||||
* graphical interface that sits on top of an SVDRP connection.
|
* graphical interface that sits on top of an SVDRP connection.
|
||||||
*
|
*
|
||||||
* $Id: svdrp.c 1.109 2008/02/17 13:36:01 kls Exp $
|
* $Id: svdrp.c 2.1 2008/05/02 14:15:38 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "svdrp.h"
|
#include "svdrp.h"
|
||||||
@ -1606,7 +1606,7 @@ bool cSVDRP::Process(void)
|
|||||||
char buffer[BUFSIZ];
|
char buffer[BUFSIZ];
|
||||||
gethostname(buffer, sizeof(buffer));
|
gethostname(buffer, sizeof(buffer));
|
||||||
time_t now = time(NULL);
|
time_t now = time(NULL);
|
||||||
Reply(220, "%s SVDRP VideoDiskRecorder %s; %s", buffer, VDRVERSION, *TimeToString(now));
|
Reply(220, "%s SVDRP VideoDiskRecorder %s; %s; %s", buffer, VDRVERSION, *TimeToString(now), cCharSetConv::SystemCharacterTable() ? cCharSetConv::SystemCharacterTable() : "UTF-8");
|
||||||
}
|
}
|
||||||
if (NewConnection)
|
if (NewConnection)
|
||||||
lastActivity = time(NULL);
|
lastActivity = time(NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user