From 374e3f787018d33ddf4c798145a115f00d67d103 Mon Sep 17 00:00:00 2001 From: andreas 'randy' weinberger Date: Sun, 6 Mar 2011 09:39:07 +0100 Subject: missing UTF-8 convert see http://projects.vdr-developer.org/issues/599 --- display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/display.c b/display.c index 6547bf4..7c73eda 100644 --- a/display.c +++ b/display.c @@ -788,12 +788,12 @@ void cGraphLCDDisplay::DisplayTime() const char *amonth = tr("JanFebMarAprMayJunJulAugSepOctNovDec"); amonth += Utf8SymChars(amonth, tm->tm_mon * 3); strn0cpy(month, amonth, min(Utf8SymChars(amonth, 3) + 1, int(sizeof(month)))); - snprintf(buffer, sizeof(buffer), "%s %2d.%s %d:%02d", (const char *) WeekDayName(tm->tm_wday), tm->tm_mday, month, tm->tm_hour, tm->tm_min); + snprintf(buffer, sizeof(buffer), "%s %2d.%s %d:%02d", (const char *) WeekDayName(tm->tm_wday), tm->tm_mday, Convert(month), tm->tm_hour, tm->tm_min); TextLen = normalFont->Width(buffer); if (TextLen > std::max(FrameWidth - 2 * TEXT_OFFSET_X, 1)) { - snprintf(buffer, sizeof(buffer), "%d.%s %d:%02d", tm->tm_mday, month, tm->tm_hour, tm->tm_min); + snprintf(buffer, sizeof(buffer), "%d.%s %d:%02d", tm->tm_mday, Convert(month), tm->tm_hour, tm->tm_min); TextLen = normalFont->Width(buffer); } -- cgit v1.2.3