1 diff -urNp -x '*.orig' elinks-0.13-20180901.org/po/pl.po elinks-0.13-20180901/po/pl.po
2 --- elinks-0.13-20180901.org/po/pl.po 2017-07-23 19:50:15.000000000 +0200
3 +++ elinks-0.13-20180901/po/pl.po 2021-05-07 22:58:24.518524650 +0200
4 @@ -7194,6 +7194,18 @@ msgstr "Czy na pewno chcesz skasować ws
5 msgid "Authentication manager"
6 msgstr "Zarządca uwierzytelniania"
8 +#: src/protocol/ftp/ftp.c:1160 src/util/file.c:464
12 +#: src/protocol/ftp/ftp.c:1162 src/util/file.c:466
16 +#: src/protocol/ftp/ftp.c:1165 src/protocol/ftp/ftp.c:1172 src/util/file.c:473
21 #: src/protocol/bittorrent/bittorrent.c:26
22 #: src/protocol/bittorrent/bittorrent.c:339
23 diff -urNp -x '*.orig' elinks-0.13-20180901.org/src/protocol/ftp/ftp.c elinks-0.13-20180901/src/protocol/ftp/ftp.c
24 --- elinks-0.13-20180901.org/src/protocol/ftp/ftp.c 2017-07-23 19:50:15.000000000 +0200
25 +++ elinks-0.13-20180901/src/protocol/ftp/ftp.c 2021-05-07 22:58:24.518524650 +0200
26 @@ -1237,7 +1237,7 @@ display_dir_entry(struct cache_entry *ca
27 /* LC_TIME=fi_FI.UTF_8 can generate "elo___ 31 23:59"
28 * where each _ denotes U+00A0 encoded as 0xC2 0xA0,
29 * thus needing a 19-byte buffer. */
30 - unsigned char date[80];
31 + unsigned char date[MAX_STR_LEN];
34 if (ftp_info->local_time_zone)
35 @@ -1247,16 +1247,16 @@ display_dir_entry(struct cache_entry *ca
37 if (current_time > when + 6L * 30L * 24L * 60L * 60L
38 || current_time < when - 60L * 60L)
40 + fmt = gettext("%b %e %Y");
42 - fmt = "%b %e %H:%M";
43 + fmt = gettext("%b %e %H:%M");
45 wr = strftime(date, sizeof(date), fmt, when_tm);
46 add_cp_html_to_string(&string, format->libc_codepage,
50 - add_to_string(&string, " ");
51 + add_to_string(&string, gettext(" "));
52 /* TODO: Above, the number of spaces might not match the width
53 * of the string generated by strftime. It depends on the
54 * locale. So if ELinks knows the timestamps of some FTP
55 @@ -1270,8 +1270,6 @@ display_dir_entry(struct cache_entry *ca
56 * Any solution chosen here should also be applied to the
57 * file: protocol handler. */
59 - add_char_to_string(&string, ' ');
61 if (ftp_info->type == FTP_FILE_DIRECTORY && format->colorize_dir) {
62 add_to_string(&string, "<font color=\"");
63 add_to_string(&string, format->dircolor);
64 diff -urNp -x '*.orig' elinks-0.13-20180901.org/src/util/file.h elinks-0.13-20180901/src/util/file.h
65 --- elinks-0.13-20180901.org/src/util/file.h 2017-07-23 19:50:15.000000000 +0200
66 +++ elinks-0.13-20180901/src/util/file.h 2021-05-07 22:58:24.518524650 +0200
67 @@ -248,16 +248,16 @@ stat_date(struct string *string, struct
69 if (current_time > when + 6L * 30L * 24L * 60L * 60L
70 || current_time < when - 60L * 60L)
72 + fmt = gettext("%b %e %Y");
74 - fmt = "%b %e %H:%M";
75 + fmt = gettext("%b %e %H:%M");
77 add_date_to_string(string, fmt, &when);
78 add_char_to_string(string, ' ');
82 - add_to_string(string, " ");
83 + add_to_string(string, gettext(" "));