1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-08-25 21:44:47 -04:00
Commit Graph

1684 Commits

Author SHA1 Message Date
Witold Filipczyk
c16c4d06c7 smb: Do not encode ' ' as %20 in base href. 2007-01-26 20:46:27 +01:00
Witold Filipczyk
71adb0e6cc cgi, fsp, smb: set_nonblocking_fd 2007-01-25 16:51:49 +01:00
Witold Filipczyk
73138dad3d smb: used string functions in place of printf and puts. 2007-01-25 14:09:44 +01:00
Witold Filipczyk
eef1c17dce fsp, smb: abort connection on empty files.
Empty files were causing 'read from socket' errors.
2007-01-25 13:38:32 +01:00
Witold Filipczyk
1d3cd264e9 smb: used string functions instead of snprintf. 2007-01-25 13:28:21 +01:00
Witold Filipczyk
0d26d3c05c smb2: show comments. 2007-01-24 20:14:41 +01:00
Witold Filipczyk
9c3cdfd5cf The SMB protocol handling using libsmbclient. 2007-01-24 18:40:28 +01:00
Witold Filipczyk
a17510c377 fsp: prompt for password when the authentication fails.
It works only for directory listings.
2007-01-23 14:34:16 +01:00
Witold Filipczyk
ad4dce3059 Removed unneded header file accidentally included by the previous commit. 2007-01-18 18:20:33 +01:00
Witold Filipczyk
d49a53b2a9 fsp: Pass the filesize by ctype (stderr). 2007-01-18 18:17:59 +01:00
Witold Filipczyk
99cff6aa70 Added macro foreach_module_builtin. Killed some warnings of gcc-4.2. 2007-01-18 17:05:16 +01:00
Witold Filipczyk
036d2d8475 dup2 closes given descriptors, so no need for the explicit close. 2007-01-18 16:41:57 +01:00
Witold Filipczyk
0e0cc7100d Merge with master 2007-01-18 16:23:38 +01:00
Kalle Olavi Niemitalo
18771fdedb Bug 924, my_timegm: Added a comment about 2100 not being a leap year. 2007-01-13 15:38:02 +02:00
Kalle Olavi Niemitalo
01fdf6c4d3 Bug 923: Added comments about potential time_t truncation.
And removed Miciah's portability question; MSVC++2005 already
has a time_t longer than long, so assuming that time_t is long
is surely not portable.
2007-01-13 15:26:21 +02:00
Kalle Olavi Niemitalo
9385c93ffd Move README.timegm to the same directory as date.c. 2007-01-13 10:01:51 +02:00
Kalle Olavi Niemitalo
f0dfd0504f Route time_t-to-string conversions via time_print_T and TIME_PRINT_FORMAT.
The previous code just printed time_t directly with "%ld".  Now it
instead first casts to time_print_T (currently long) and then formats
with TIME_PRINT_FORMAT (currently "ld").  So the varargs will now
always match with the format string, even if time_t is longer than
long.  This still doesn't correctly format time_t values larger than
LONG_MAX, though.  But now it is at least easier to find some of the
places that need to be changed to support that.

I located these time_t-to-string conversions by searching for
str_to_time_t, expires, and last_visit.  There are still more places
that assume every interesting time_t value fits either in 32 bits or
in a long, e.g. in the cookie editor and in the ECMAScript interface.

Inspired by bug 6.
2007-01-12 23:47:45 +02:00
Witold Filipczyk
678d52551d epoll: use EPOLLHUP
Read data when EPOLLIN or EPOLLHUP events occur.
2007-01-08 20:28:22 +01:00
Witold Filipczyk
753e503e26 Removed the buggy code. 2007-01-08 11:38:34 +01:00
Witold Filipczyk
6528b3c574 epoll: w_max is number of open descriptors.
Slave instances of ELinks quit properly.
2007-01-07 21:57:40 +01:00
Witold Filipczyk
79e59e9d6f bzip2: buf must be the last. 2007-01-07 21:48:34 +01:00
Witold Filipczyk
4d7c491a22 Missing include. 2007-01-07 21:41:46 +01:00
Witold Filipczyk
216d6c7ec8 Slave terminals work with epoll. 2007-01-07 17:36:30 +01:00
Witold Filipczyk
ef5f2638a3 Drop to_read. 2007-01-07 16:24:46 +01:00
Witold Filipczyk
f7b9be4aa1 bzip2: Used the patch from bug the 517.
Removed the bzip2-pipe.patch from contrib.
2007-01-07 16:17:43 +01:00
Witold Filipczyk
ff2e55c647 Merge with master 2007-01-07 16:03:24 +01:00
Kalle Olavi Niemitalo
f796051b4c Bug 921, add_document_to_string: Fixed the UTF-8 half of the code.
* Recompute the pos variable for each cell, rather than just once per line.
  This fixes the bug that only the first cell was being examined.

* Moved the bulk of the code outside the "if (frame && data >= 176 &&
  data < 224)" conditional.  This fixes the bug that only frame
  characters were being added to the string.

* If the cell has UCS_NO_CHAR in it, don't add that to the string.

* Call encode_utf8 even for characters that originated from a frame.
  This does not matter yet but will be correct if the function is
  later changed to use the Unicode line-drawing characters for frames.
2007-01-07 00:09:34 +02:00
Kalle Olavi Niemitalo
06f058f5e8 Bug 752: Rearrange the docstrings of color-mode options.
In the elinks.conf.5 manual page, the text below the list of modes was
getting included in the last list item.  This appears to be a design
error in AsciiDoc.  Work around it by moving the text above the list.
2007-01-06 23:40:18 +02:00
Witold Filipczyk
1e8f8aa4a6 warning: ctext is used only with CONFIG_UTF8. 2007-01-03 21:55:39 +02:00
Witold Filipczyk
2109be1587 warning: ctext is used only with CONFIG_UTF8. 2007-01-03 18:18:56 +01:00
Witold Filipczyk
f1173453d4 Merge with master 2007-01-03 18:15:16 +01:00
Witold Filipczyk
85cb16d14c Added ELINKS_EPOLL_SIZE to the setup.h. 128 is enough for most uses. 2007-01-03 12:54:05 +01:00
Kalle Olavi Niemitalo
a577455b24 Revise comments in struct codepage_desc and struct conv_table. 2007-01-03 07:32:00 +02:00
Witold Filipczyk
07ea72242e Merge with master 2007-01-02 22:09:51 +01:00
Kalle Olavi Niemitalo
455ea77ead Make strings[] and no_str[] const. 2007-01-02 21:40:14 +02:00
Kalle Olavi Niemitalo
1668d78998 Make cp2utf8 return a pointer to const. 2007-01-02 21:39:34 +02:00
Kalle Olavi Niemitalo
62d321fb31 Make add_utf8 accept a pointer to const. 2007-01-02 21:36:03 +02:00
Kalle Olavi Niemitalo
176bbe83b6 Make input data and source file names const in memacpy and stracpy. 2007-01-02 21:26:55 +02:00
Kalle Olavi Niemitalo
882d179fc8 Make many string parameters const in the memory leak detector. 2007-01-02 21:25:20 +02:00
Kalle Olavi Niemitalo
251dcb7f9f Make errfile point to const. 2007-01-02 21:22:51 +02:00
Kalle Olavi Niemitalo
ef96caad01 Make u2cp and u2cp_no_nbsp return a pointer to const. 2007-01-02 20:08:59 +02:00
Kalle Olavi Niemitalo
712803bbeb Make entity_cache.result point to const. 2007-01-02 20:08:25 +02:00
Kalle Olavi Niemitalo
d314348e92 Make get_entity_string return a pointer to const. 2007-01-02 08:29:08 +02:00
Kalle Olavi Niemitalo
83f753f750 conv_table.u.str points to const. 2007-01-02 01:31:22 +02:00
Kalle Olavi Niemitalo
2434c180f2 Make no_str in charsets.c an array rather than a pointer variable.
This ensures that no other string can have the same address.  It
probably never was a problem though, because the strings to which it
can be compared either are allocated from the heap or are in
strings[][] which already has unshared storage.
2007-01-02 01:07:57 +02:00
Kalle Olavi Niemitalo
161b46a479 Make table[] in charsets.c static.
There is no extern declaration for it anywhere.
2007-01-02 00:58:38 +02:00
Kalle Olavi Niemitalo
9d14ea4e5a Document some variables in charsets.c. 2007-01-02 00:54:14 +02:00
Kalle Olavi Niemitalo
068663783c insert_in_string: Let the seq parameter point to const.
It is the data to be inserted into the other string.
2007-01-02 00:47:38 +02:00
Kalle Olavi Niemitalo
10f1bd0efc Document struct conv_table. 2007-01-01 21:11:46 +02:00
M. Levinson
26473f72f5 Python: Give goto_url_hook only one argument, like follow_url_hook.
On Dec 31, 2006, at 11:30am, Kalle Olavi Niemitalo writes:
>src/scripting/python/hooks.c (script_hook_url) calls hooks as
>goto_url_hook(new-url, current-url) and follow_url_hook(new-url).
>It has a comment saying that the current-url parameter exists
>only for compatibility and that the script can instead use
>elinks.current_url().  However, the current-url parameter was
>added in commit 87e27b9b3e and is
>not in ELinks 0.11.2, so any compatibility problems would only
>hit people who have been using 0.12.GIT snapshots.  Can we remove
>the second parameter now before releasing ELinks 0.12pre1?

The decision isn't up to me, but I think this is a good idea. Here's a
patch that would update the documentation and hooks.py, as well as hooks.c.

FYI, if this patch is applied then anyone who's still trying to use a
goto_url_hook that expects a second argument will get a "Browser scripting
error" dialog box that says:

	An error occurred while running a Python script:

	TypeError: goto_url_hook() takes exactly 2 arguments (1 given)
2007-01-01 17:45:36 +02:00