1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00
Commit Graph

2637 Commits

Author SHA1 Message Date
Kalle Olavi Niemitalo
e02949cd13 NEWS: List release dates, from mailing list announcements. 2007-05-01 20:24:50 +02:00
Laurent MONIN
31a474576b Fix a typo. 2007-05-01 20:24:46 +02:00
Kalle Olavi Niemitalo
dcd88ab724 NEWS update 2007-05-01 20:24:42 +02:00
Kalle Olavi Niemitalo
4766314960 Bug 941: Survive an unexpected number of 227 or 229 FTP responses.
And document the functions a little.

[ From commit 71ff470f2e in ELinks
  0.11.2.GIT.  --KON ]
2007-05-01 20:24:36 +02:00
Kalle Olavi Niemitalo
b6266c8b07 NEWS: Mark Tiny C Compiler support experimental because of many problems. 2007-05-01 20:24:30 +02:00
Kalle Olavi Niemitalo
572678d33e NEWS update 2007-05-01 20:24:25 +02:00
Kalle Olavi Niemitalo
792bb98e58 charset_list: Map the "System" codepage to the underlying one.
If LC_CTYPE=fi_FI.ISO-8859-15, and terminal.*.charset = System,
then the charset menu will select ISO 8859-15 by default.
2007-05-01 20:24:20 +02:00
Kalle Olavi Niemitalo
ad63a26539 NEWS rearrangements 2007-05-01 20:24:17 +02:00
Kalle Olavi Niemitalo
62095fc0b6 NEWS: Sync from 0.11.2.GIT commit 452d4c0f61. 2007-05-01 20:24:10 +02:00
Kalle Olavi Niemitalo
066ca9738e NEWS: Number the future releases. 2007-05-01 20:24:05 +02:00
Kalle Olavi Niemitalo
790ed1276a NEWS: Bug 880 and the SMJS exit segfault have been fixed in 0.11.2.GIT too. 2007-05-01 20:24:00 +02:00
Kalle Olavi Niemitalo
5cbf14826b hacking.txt: Promote all headings one level.
"Hacking Elinks" is now a level-0 heading, so we get a <title> in the
generated HTML.
2007-05-01 20:23:55 +02:00
Kalle Olavi Niemitalo
8fbe476ba4 NEWS: sync from Git 2007-05-01 20:23:49 +02:00
Kalle Olavi Niemitalo
e5f32b4820 NEWS: Document the upcoming 0.11.3 changes.
Extracted from NEWS of commit 74799c60b2
in ELinks 0.11.2.GIT.
2007-05-01 20:23:44 +02:00
Kalle Olavi Niemitalo
e40d8e7a7e NEWS: Document the 0.11.1 and 0.11.2 releases.
Extracted from NEWS of commit d5d918e26b
in ELinks 0.11.2.GIT.
2007-05-01 20:23:39 +02:00
Kalle Olavi Niemitalo
4821d841c7 do_move_bookmark: Update comment to match reality.
[ From commit 22d051925e in ELinks
  0.11.2.GIT.  --KON ]
2007-05-01 20:23:34 +02:00
Kalle Olavi Niemitalo
37ca87a01e do_smb: URI-encode the username and password.
I tested that this does the right thing for the username "Kalle %50"
(encodes it to "Kalle%20%2550", and libsmbclient then decodes back).
2007-05-01 20:23:29 +02:00
Laurent MONIN
e8bd376361 French translation was updated. 2007-05-01 20:23:07 +02:00
Kalle Olavi Niemitalo
33319cd842 do_smb: Don't decode_uri.
libsmbclient will decode the URI on its own, so if ELinks does that too,
file names like "2%200" will be incorrectly handled.
2007-05-01 20:22:07 +02:00
Kalle Olavi Niemitalo
9418f3d508 TAGS: Doh, don't forget to scan the *.[ch] files. 2007-05-01 20:22:02 +02:00
Kalle Olavi Niemitalo
64159aa70a TAGS: Scan *.inc too. Recognize the ACTION_ macro. 2007-05-01 20:21:57 +02:00
Kalle Olavi Niemitalo
13acf06876 Don't mark undisplayed names of modules for translation.
Exclude unneeded header files.  This partially reverts commit
90980a944e, with permission.
2007-05-01 20:21:50 +02:00
Kalle Olavi Niemitalo
ac818c4837 report_scripting_error: Look up module names with gettext. 2007-05-01 20:21:42 +02:00
Laurent MONIN
1360e8d5a6 French translation was updated. 2007-05-01 20:20:25 +02:00
Laurent MONIN
a4f1b7e489 Mark all module names for translation and include needed header files. 2007-05-01 20:20:15 +02:00
Kalle Olavi Niemitalo
36ce51f912 ftp: Decode strftime results from the system codepage. 2007-05-01 20:20:09 +02:00
Kalle Olavi Niemitalo
605d04378f add_cp_html_to_string: New function.
To be used when strings from gettext or strftime must be inserted
into an HTML document with a potentially different charset.
2007-05-01 20:20:04 +02:00
Kalle Olavi Niemitalo
269a8f4397 ftp: Collect HTML formatting parameters into a structure. 2007-05-01 20:19:58 +02:00
Kalle Olavi Niemitalo
21bdcad9c7 ftp: Allocate a larger buffer for the timestamp string. 2007-05-01 20:19:53 +02:00
Kalle Olavi Niemitalo
b636024ede ftp: Don't pad the timestamp column with spaces. 2007-05-01 20:19:48 +02:00
Kalle Olavi Niemitalo
d696d6530f show_http_error_document: Generate a charset parameter. 2007-05-01 20:19:41 +02:00
Kalle Olavi Niemitalo
b29655f25f file: Directory listings are in the system charset.
Give them a corresponding Content-Type header.  This must go in
cached->head because cached->content_type is supposed to be just
type/subtype.  It will also be deduced from cached->head, so don't set
it separately.
2007-05-01 20:19:34 +02:00
Kalle Olavi Niemitalo
55bce38eee struct directory_entry: Document the charset and mem_free. 2007-05-01 20:19:29 +02:00
Kalle Olavi Niemitalo
e1bc8aafcc add_date_to_string: Let last two parameters point to const. 2007-05-01 20:19:24 +02:00
Kalle Olavi Niemitalo
a4dee5acba intl: Fork get_cp_config_name off get_cp_mime_name.
This may help with bug 914 but I'm not testing that yet.
2007-05-01 20:19:18 +02:00
Kalle Olavi Niemitalo
81cb9155d2 add_html_to_string: Do not encode bytes 0x80...0xFF.
Reported by Witold Filipczyk.
2007-05-01 20:19:11 +02:00
Kalle Olavi Niemitalo
65efed3e83 Use add_string_to_string where applicable. 2007-05-01 20:19:06 +02:00
Kalle Olavi Niemitalo
43b8bdd8c3 add_string_to_string: Don't fail if @from is empty.
Old versions of add_string_to_string returned the target string
unmodified if from->source pointed to a null character, which usually
meant that the source string was empty.  That was changed in commit
5e18576391f75ad84e04f9c8a30b93d08f0b92ab on 2004-11-03 so that
add_string_to_string instead returned NULL in that situation.  The
change seems to have been inadvertent.

I'm now reverting that change and also making add_string_to_string
check the emptiness of the source string based on the stored length
only, rather than on any null characters.  So the function can now
also be used with non-C strings containing embedded null characters.
Note that the previous version did not completely prevent embedded
null characters either, because it checked only the first character.
2007-05-01 20:19:00 +02:00
Kalle Olavi Niemitalo
ae62c0ef46 utf8_to_unicode: Let the end parameter point to const. 2007-05-01 20:18:54 +02:00
Kalle Olavi Niemitalo
7e86205902 add_html_to_string: Also restore the '\0' terminator. 2007-05-01 20:17:28 +02:00
Kalle Olavi Niemitalo
14d79f6c91 add_html_to_string: If out of memory, roll back and return NULL. 2007-05-01 20:17:19 +02:00
Kalle Olavi Niemitalo
8c9858b6a0 add_html_to_string: Encode only known unsafe or non-ASCII characters.
In particular, do not encode '%' and '/', which are common in URIs.
2007-05-01 20:17:04 +02:00
Kalle Olavi Niemitalo
bd0dce9a3a init_directory_listing: Link to original URLs. Decode for display only.
HTML-escape all strings that are not intended to contain markup.
2007-05-01 20:16:46 +02:00
Witold Filipczyk
07843f924c Hack to let auto-commiting work. 2007-05-01 20:16:43 +02:00
Kalle Olavi Niemitalo
de2ce3319c More const in URI functions.
Not yet all of them, though.
2007-05-01 20:08:25 +02:00
Kalle Olavi Niemitalo
bca031d1ba ftp, add_file_cmd_to_str: Check errors from string functions.
Use goto for error handling.  Free all strings in the same place.
2007-05-01 20:08:19 +02:00
Kalle Olavi Niemitalo
4bcce2e5ea Reject CR and LF characters in FTP pathnames. 2007-05-01 20:08:13 +02:00
Kalle Olavi Niemitalo
12d94d3408 Cast the NULL argument of string_concat to unsigned char *.
string_concat reads the args with va_arg(ap, const unsigned char *),
and the NULL macro may have the wrong type (e.g. int).

Many places pass string literals of type char * to string_concat.
This is in principle also a violation, but I'm ignoring it for now
because if it becomes a problem with some C implementation, then so
will the use of unsigned char * with printf "%s", which is so
widespread in ELinks that I'm not going to try fixing it now.
2007-05-01 20:05:12 +02:00
Kalle Olavi Niemitalo
7e71f929af Cast the NULL argument of straconcat to unsigned char *.
straconcat reads the args with va_arg(ap, const unsigned char *),
and the NULL macro may have the wrong type (e.g. int).

Many places pass string literals of type char * to straconcat.  This
is in principle also a violation, but I'm ignoring it for now because
if it becomes a problem with some C implementation, then so will the
use of unsigned char * with printf "%s", which is so widespread in
ELinks that I'm not going to try fixing it now.
2007-05-01 20:05:04 +02:00
Kalle Olavi Niemitalo
33b8f7175e Cast variadic arguments of add_to_ml to void *.
getml reads the args with va_arg(ap, void *), and the NULL macro in
particular may have the wrong type.
2007-05-01 20:04:57 +02:00