Ticket #435: utf8_dates.diff

File utf8_dates.diff, 388 bytes (added by goyko, 15 years ago)
  • gtk/util.c

    diff -ru transmission-0.91/gtk/util.c t/gtk/util.c
     
    118118  const struct tm tm = *localtime (&secs);
    119119  char buf[128];
    120120  strftime (buf, sizeof(buf), "%a, %d %b %Y %T %Z", &tm);
    121   return g_strdup (buf);
     121  return g_locale_to_utf8(buf, -1, NULL, NULL, NULL);
    122122}
    123123
    124124char *