diff options
author | andreas 'randy' weinberger <vdr@smue.org> | 2011-03-06 09:39:07 +0100 |
---|---|---|
committer | andreas 'randy' weinberger <vdr@smue.org> | 2011-03-06 09:39:07 +0100 |
commit | 374e3f787018d33ddf4c798145a115f00d67d103 (patch) | |
tree | 8af8a92a80c2c80251d292d58b517625aa6601fd | |
parent | d283a0fd024928434bfda4cb83e86ba459159a32 (diff) | |
download | vdr-plugin-graphlcd-374e3f787018d33ddf4c798145a115f00d67d103.tar.gz vdr-plugin-graphlcd-374e3f787018d33ddf4c798145a115f00d67d103.tar.bz2 |
missing UTF-8 convert
see http://projects.vdr-developer.org/issues/599
-rw-r--r-- | display.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |