--- elinks-0.11.3/src/util/file.c.orig 2007-12-02 01:03:26.631355000 +0100 +++ elinks-0.11.3/src/util/file.c 2007-12-02 01:19:06.416911036 +0100 @@ -461,16 +461,16 @@ stat_date(struct string *string, struct 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"); add_date_to_string(string, fmt, &when); add_char_to_string(string, ' '); return; } #endif - add_to_string(string, " "); + add_to_string(string, gettext(" ")); } --- 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, "