ensure dates in the torrent inspector are readable by converting them from the system's locale to UTF-8. (bug found and patched by goyko, ticket #435)

This commit is contained in:
Charles Kerr 2007-10-29 23:49:00 +00:00
parent 14c90560fc
commit 1b85349b3f
1 changed files with 5 additions and 5 deletions

View File

@ -117,8 +117,8 @@ rfc822date (guint64 epoch_msec)
const time_t secs = epoch_msec / 1000;
const struct tm tm = *localtime (&secs);
char buf[128];
strftime (buf, sizeof(buf), "%a, %d %b %Y %T %Z", &tm);
return g_strdup (buf);
strftime( buf, sizeof(buf), "%a, %d %b %Y %T %Z", &tm );
return g_locale_to_utf8( buf, -1, NULL, NULL, NULL );
}
char *