]> git.pld-linux.org Git - packages/elinks.git/blob - elinks-date-format.patch
rebuild with openssl 3.0.0
[packages/elinks.git] / elinks-date-format.patch
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"
7  
8 +#: src/protocol/ftp/ftp.c:1160 src/util/file.c:464
9 +msgid "%b %e  %Y"
10 +msgstr "%e.%m.%Y "
11 +
12 +#: src/protocol/ftp/ftp.c:1162 src/util/file.c:466
13 +msgid "%b %e %H:%M"
14 +msgstr "%e.%m %H:%M"
15 +
16 +#: src/protocol/ftp/ftp.c:1165 src/protocol/ftp/ftp.c:1172 src/util/file.c:473
17 +msgid "             "
18 +msgstr "             "
19 +
20  #. name:
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];
32                 int wr;
33  
34                 if (ftp_info->local_time_zone)
35 @@ -1247,16 +1247,16 @@ display_dir_entry(struct cache_entry *ca
36  
37                 if (current_time > when + 6L * 30L * 24L * 60L * 60L
38                     || current_time < when - 60L * 60L)
39 -                       fmt = "%b %e  %Y";
40 +                       fmt = gettext("%b %e  %Y");
41                 else
42 -                       fmt = "%b %e %H:%M";
43 +                       fmt = gettext("%b %e %H:%M");
44  
45                 wr = strftime(date, sizeof(date), fmt, when_tm);
46                 add_cp_html_to_string(&string, format->libc_codepage,
47                                       date, wr);
48         } else
49  #endif
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.  */
58  
59 -       add_char_to_string(&string, ' ');
60 -
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
68  
69                 if (current_time > when + 6L * 30L * 24L * 60L * 60L
70                     || current_time < when - 60L * 60L)
71 -                       fmt = "%b %e  %Y";
72 +                       fmt = gettext("%b %e  %Y");
73                 else
74 -                       fmt = "%b %e %H:%M";
75 +                       fmt = gettext("%b %e %H:%M");
76  
77                 add_date_to_string(string, fmt, &when);
78                 add_char_to_string(string, ' ');
79                 return;
80         }
81  #endif
82 -       add_to_string(string, "             ");
83 +       add_to_string(string, gettext("             "));
84  }
85  
86  
This page took 0.061991 seconds and 3 git commands to generate.