[Users] [Bug 3997] Date is not translated when you reply to a mail
noreply at thewildbeast.co.uk
noreply at thewildbeast.co.uk
Tue Mar 27 21:35:41 CEST 2018
http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=3997
marius.spix at web.de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |---
--- Comment #3 from marius.spix at web.de ---
I did not change the default template and my system’s locale is "de_DE.utf8".
Claws Mail is compiled against glibc 2.25.
The following program
#include <stdio.h>
#include <time.h>
int main(argc, argv)
int argc;
char *argv[]; {
time_t rawtime;
struct tm *timeinfo;
time(&rawtime);
timeinfo = localtime(&rawtime);
char buf[255];
strftime(buf, sizeof(buf), "%c", timeinfo);
puts(buf);
return 0;
}
writes "Tue Mar 27 21:19:35 2018"
However, the program
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
#include <time.h>
int main(argc, argv)
int argc;
char *argv[]; {
char *locale;
locale = getenv("LC_ALL");
setlocale(LC_ALL, locale);
time_t rawtime;
struct tm *timeinfo;
time(&rawtime);
timeinfo = localtime(&rawtime);
char buf[255];
strftime(buf, sizeof(buf), "%c", timeinfo);
puts(buf);
return 0;
}
correctly prints "Di 27 Mär 2018 21:35:12 CEST".
So I think, you are just missing a setlocale() call in Claws Mail.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Users
mailing list