sfeed_plain: utf-8 pad name

This commit is contained in:
Hiltjo Posthuma 2018-02-18 14:39:07 +01:00
parent 2e7f0da297
commit 9276032c7b
1 changed files with 4 additions and 2 deletions

View File

@ -37,8 +37,10 @@ printfeed(FILE *fp, const char *feedname)
else
fputs(" ", stdout);
if (feedname[0])
printf("%-15.15s ", feedname);
if (feedname[0]) {
printutf8pad(stdout, feedname, 15, ' ');
fputs(" ", stdout);
}
fprintf(stdout, "%04d-%02d-%02d %02d:%02d ",
tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday,