]> git.pld-linux.org Git - packages/elinks.git/commitdiff
- updated to 0.12pre1
authorwitekfl <witekfl@pld-linux.org>
Tue, 1 Jul 2008 17:07:36 +0000 (17:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    elinks-date-format.patch -> 1.2
    elinks-home_etc.patch -> 1.4

elinks-date-format.patch
elinks-home_etc.patch

index 48d3941bb10b6a538e96e86f4aaa3ce4d2454dea..603a21d6a4cf6688fa75b3a2741cd5598c5a93fe 100644 (file)
  }
  
  
---- elinks-0.11.3/src/protocol/ftp/ftp.c.orig  2007-12-02 01:03:26.739361000 +0100
-+++ elinks-0.11.3/src/protocol/ftp/ftp.c       2007-12-02 01:23:34.644196437 +0100
-@@ -1147,7 +1147,7 @@ display_dir_entry(struct cache_entry *ca
-               time_t when = ftp_info->mtime;
-               struct tm *when_tm;
-               unsigned char *fmt;
--              unsigned char date[13];
-+              unsigned char date[MAX_STR_LEN];
-               int wr;
-               if (ftp_info->local_time_zone)
-@@ -1157,20 +1157,19 @@ display_dir_entry(struct cache_entry *ca
-               if (current_time > when + 6L * 30L * 24L * 60L * 60L
-                   || current_time < when - 60L * 60L)
--                      fmt = "%b %e  %Y";
-+                      fmt = gettext("%b %e  %Y");
-               else
--                      fmt = "%b %e %H:%M";
-+                      fmt = gettext("%b %e %H:%M");
--              wr = strftime(date, sizeof(date), fmt, when_tm);
--
--              while (wr < sizeof(date) - 1) date[wr++] = ' ';
--              date[sizeof(date) - 1] = '\0';
--              add_to_string(&string, date);
-+              if (strftime(date, sizeof(date), fmt, when_tm) <= 0)
-+                      add_to_string(&string, gettext("             "));
-+              else {
-+                      add_to_string(&string, date);
-+                      add_char_to_string(&string, ' ');
-+              }
-       } else
- #endif
--      add_to_string(&string, "            ");
--
--      add_char_to_string(&string, ' ');
-+      add_to_string(&string, gettext("             "));
-       if (ftp_info->type == FTP_FILE_DIRECTORY && colorize_dir) {
-               add_to_string(&string, "<font color=\"");
 --- elinks-0.11.3/po/pl.po.orig        2007-04-15 22:51:02.000000000 +0200
 +++ elinks-0.11.3/po/pl.po     2007-12-02 01:29:45.701341779 +0100
 @@ -7428,6 +7428,18 @@
  #. name:
  #: src/protocol/gopher/gopher.c:46
  msgid "Gopher"
+--- elinks-0.12pre1/src/protocol/ftp/ftp.c.old 2008-07-01 18:51:59.000000000 +0200
++++ elinks-0.12pre1/src/protocol/ftp/ftp.c     2008-07-01 18:59:09.000000000 +0200
+@@ -1185,7 +1185,7 @@ display_dir_entry(struct cache_entry *ca
+               /* LC_TIME=fi_FI.UTF_8 can generate "elo___ 31 23:59"
+                * where each _ denotes U+00A0 encoded as 0xC2 0xA0,
+                * thus needing a 19-byte buffer.  */
+-              unsigned char date[80];
++              unsigned char date[MAX_STR_LEN];
+               int wr;
+               if (ftp_info->local_time_zone)
+@@ -1195,16 +1195,16 @@ display_dir_entry(struct cache_entry *ca
+               if (current_time > when + 6L * 30L * 24L * 60L * 60L
+                   || current_time < when - 60L * 60L)
+-                      fmt = "%b %e  %Y";
++                      fmt = gettext("%b %e  %Y");
+               else
+-                      fmt = "%b %e %H:%M";
++                      fmt = gettext("%b %e %H:%M");
+               wr = strftime(date, sizeof(date), fmt, when_tm);
+               add_cp_html_to_string(&string, format->libc_codepage,
+                                     date, wr);
+       } else
+ #endif
+-      add_to_string(&string, "            ");
++      add_to_string(&string, gettext("             "));
+       /* TODO: Above, the number of spaces might not match the width
+        * of the string generated by strftime.  It depends on the
+        * locale.  So if ELinks knows the timestamps of some FTP
+@@ -1218,8 +1218,6 @@ display_dir_entry(struct cache_entry *ca
+        * Any solution chosen here should also be applied to the
+        * file: protocol handler.  */
+-      add_char_to_string(&string, ' ');
+-
+       if (ftp_info->type == FTP_FILE_DIRECTORY && format->colorize_dir) {
+               add_to_string(&string, "<font color=\"");
+               add_to_string(&string, format->dircolor);
index 586df210f1ea9bbea182c3c71652c2de4954d5fe..611364d7ade6d2fdb1106eba20fa681e5742b087 100644 (file)
@@ -1,7 +1,6 @@
-diff -burN elinks-0.11.0.orig/doc/man/man1/elinks.1.in elinks-0.11.0/doc/man/man1/elinks.1.in
---- elinks-0.11.0.orig/doc/man/man1/elinks.1.in        2006-01-01 21:59:35.921524250 +0100
-+++ elinks-0.11.0/doc/man/man1/elinks.1.in     2006-01-01 22:01:19.884021500 +0100
-@@ -320,6 +320,12 @@
+--- elinks-0.12pre1/doc/man/man1/elinks.1.in.old       2008-07-01 02:11:44.000000000 +0200
++++ elinks-0.12pre1/doc/man/man1/elinks.1.in   2008-07-01 18:36:50.000000000 +0200
+@@ -315,6 +315,12 @@ The path to the users home directory. Us
  ~/.
  .RE
  .PP
@@ -14,15 +13,15 @@ diff -burN elinks-0.11.0.orig/doc/man/man1/elinks.1.in elinks-0.11.0/doc/man/man
  WWW_HOME
  .RS 4
  Homepage location (as in
-diff -burN elinks-0.11.0.orig/src/config/home.c elinks-0.11.0/src/config/home.c
---- elinks-0.11.0.orig/src/config/home.c       2006-01-01 21:59:35.845519500 +0100
-+++ elinks-0.11.0/src/config/home.c    2006-01-01 22:00:36.489309500 +0100
-@@ -109,7 +109,7 @@
+--- elinks-0.12pre1/src/config/home.c.old      2008-07-01 02:11:44.000000000 +0200
++++ elinks-0.12pre1/src/config/home.c  2008-07-01 18:41:01.000000000 +0200
+@@ -110,7 +110,8 @@ static unsigned char *
  get_home(void)
  {
        unsigned char *home_elinks;
 -      unsigned char *envhome = getenv("HOME");
-+      unsigned char *envhome = getenv("HOME_ETC") ? getenv("HOME_ETC") : getenv("HOME");
-       unsigned char *home = envhome ? stracpy(envhome)
-                                     : elinks_dirname(program.path);
++      unsigned char *home_etc = getenv("HOME_ETC");
++      unsigned char *envhome = home_etc ? home_etc : getenv("HOME");
+       unsigned char *home = NULL;
  
+       if (!home && envhome)
This page took 0.183162 seconds and 4 git commands to generate.