diff options
-rw-r--r-- | CONTRIBUTORS | 4 | ||||
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | menu.c | 7 |
3 files changed, 10 insertions, 3 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index e2555254..f703555c 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -2251,3 +2251,7 @@ Mario Ivankovits <mario@ops.co.at> István Füley <ifuley@tigercomp.ro> for translating OSD texts to the Hungarian language + +Jiri Dobry <jdobry@centrum.cz> + for reporting a bug in displaying weekday names in the Schedule menu if the system + uses UTF-8 @@ -5554,3 +5554,5 @@ Video Disk Recorder Revision History programmer to write 'a || (b && c)', while everybody knows that '&&' links stronger than '||' (reported by Tobias Grimm). - Updated the Hungarian language texts (thanks to István Füley). +- Fixed displaying weekday names in the Schedule menu if the system uses UTF-8 + (reported by Jiri Dobry). @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 1.468 2008/01/13 12:43:09 kls Exp $ + * $Id: menu.c 1.469 2008/01/13 13:59:33 kls Exp $ */ #include "menu.h" @@ -1059,12 +1059,13 @@ bool cMenuScheduleItem::Update(bool Force) char v = event->Vps() && (event->Vps() - event->StartTime()) ? 'V' : ' '; char r = event->SeenWithin(30) && event->IsRunning() ? '*' : ' '; const char *csn = channel ? channel->ShortName(true) : NULL; + cString eds = event->GetDateString(); if (channel && withDate) - asprintf(&buffer, "%d\t%.*s\t%.*s\t%s\t%c%c%c\t%s", channel->Number(), Utf8SymChars(csn, 6), csn, 6, *event->GetDateString(), *event->GetTimeString(), t, v, r, event->Title()); + asprintf(&buffer, "%d\t%.*s\t%.*s\t%s\t%c%c%c\t%s", channel->Number(), Utf8SymChars(csn, 6), csn, Utf8SymChars(eds, 6), *eds, *event->GetTimeString(), t, v, r, event->Title()); else if (channel) asprintf(&buffer, "%d\t%.*s\t%s\t%c%c%c\t%s", channel->Number(), Utf8SymChars(csn, 6), csn, *event->GetTimeString(), t, v, r, event->Title()); else - asprintf(&buffer, "%.*s\t%s\t%c%c%c\t%s", 6, *event->GetDateString(), *event->GetTimeString(), t, v, r, event->Title()); + asprintf(&buffer, "%.*s\t%s\t%c%c%c\t%s", Utf8SymChars(eds, 6), *eds, *event->GetTimeString(), t, v, r, event->Title()); SetText(buffer, false); result = true; } |