1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-17 01:16:16 -04:00
Commit Graph

2794 Commits

Author SHA1 Message Date
Witold Filipczyk
f1299cff93 Polish translation was updated. 2007-05-20 16:58:26 +02:00
Kalle Olavi Niemitalo
ebd4b979c1 UTF-8, add_char_data: data can be UCS_NO_CHAR after all. 2007-05-20 14:24:52 +02:00
Kalle Olavi Niemitalo
e099a05a57 Whitespace and comments. 2007-05-20 14:24:47 +02:00
Kalle Olavi Niemitalo
0c3d05817e UTF-8, set_screen_driver_opt: Never use frame_seqs with UTF-8 I/O. 2007-05-20 14:24:41 +02:00
Kalle Olavi Niemitalo
f970994640 UTF-8: frame_freebsd isn't in CP437 so use a separate table for UTF-8 I/O. 2007-05-20 14:24:35 +02:00
Kalle Olavi Niemitalo
2e91945b69 UTF-8: Comment about frame_freebsd[]. 2007-05-20 14:24:30 +02:00
Kalle Olavi Niemitalo
b2186fadf4 UTF-8: Use frame_vt100_u even #ifdef CONFIG_UTF8.
Should perhaps have been part of the previous commit.
2007-05-20 14:24:25 +02:00
Kalle Olavi Niemitalo
cdd0cd98bf UTF-8: Make UTF-8 I/O affect frame characters even #ifdef CONFIG_UTF8. 2007-05-20 14:24:18 +02:00
Kalle Olavi Niemitalo
d1da2e938e UTF-8, add_char_data: Comment about UCS_NO_CHAR. 2007-05-20 14:24:14 +02:00
Kalle Olavi Niemitalo
976b0d26ad UTF-8: Remove screen_driver_opt.utf8, which is no longer used. 2007-05-20 14:24:08 +02:00
Kalle Olavi Niemitalo
d561304524 UTF-8, use_utf8_io: Test driver->opt.charsets[0] even #ifdef CONFIG_UTF8.
driver->opt.utf8 is no longer read and will soon be removed.
2007-05-20 14:24:03 +02:00
Kalle Olavi Niemitalo
3260bcec20 UTF-8: Define and set screen_driver_opt.charsets even #ifdef CONFIG_UTF8.
However, the stored values are not yet read in this commit.
2007-05-20 14:23:57 +02:00
Kalle Olavi Niemitalo
4baf668f28 UTF-8, set_screen_driver_opt: Don't test driver->opt.utf8 after utf8_io.
They have the same value so one test will suffice.
2007-05-20 14:23:50 +02:00
Kalle Olavi Niemitalo
aa490bab64 UTF-8, set_screen_driver_opt: Shrink #ifdef CONFIG_UTF8 regions. 2007-05-20 14:23:44 +02:00
Kalle Olavi Niemitalo
b2d35c73ec UTF-8, set_screen_driver_opt: Duplicate CONFIG_UTF8 code. 2007-05-20 14:23:39 +02:00
Kalle Olavi Niemitalo
5261cd17d1 UTF-8: Change type of constants to struct screen_driver_opt.
We don't need a full struct screen_driver here.
2007-05-20 14:23:33 +02:00
Kalle Olavi Niemitalo
3786dd9265 UTF-8: Leave driver->opt initialization to set_screen_driver_opt.
Don't bother to initialize driver->opt with memcpy in add_screen_driver.
2007-05-20 14:23:27 +02:00
Kalle Olavi Niemitalo
f8fdf6a93d UTF-8: Rename update_screen_driver to set_screen_driver_opt. 2007-05-20 14:23:21 +02:00
Kalle Olavi Niemitalo
b493ab8b9e UTF-8, update_screen_driver: Restore all original options. 2007-05-20 14:23:16 +02:00
Kalle Olavi Niemitalo
73b67d34dc UTF-8: New struct screen_driver_opt engulfs most of struct screen_driver.
No behaviour changes yet, although padding may differ.
2007-05-20 14:23:11 +02:00
Kalle Olavi Niemitalo
b6855c8616 UTF-8, update_screen_driver: First read the "charset" option. 2007-05-20 14:23:05 +02:00
Kalle Olavi Niemitalo
0d9be10fe4 UTF-8, update_screen_driver: A small rearrangement.
This does not change the behaviour but will help later changes.
2007-05-20 14:22:59 +02:00
Kalle Olavi Niemitalo
39bd97f11e UTF-8: Whitespace changes. 2007-05-20 14:22:54 +02:00
Kalle Olavi Niemitalo
ac6c03e287 put_link_line: Add a comment related to bug 213. 2007-05-20 14:22:47 +02:00
Kalle Olavi Niemitalo
5b331574d0 NEWS: sync from 0.11.3.GIT 2007-05-20 14:22:42 +02:00
Kalle Olavi Niemitalo
264582fd53 contrib/elinks.conf: Remove the file.
I don't think there is any point in keeping this file when users can
easily run elinks -no-home -config-dump to get an equivalent one.
The result won't include options for features that were disabled at
configure time, but the users won't need those options either.

Furthermore, if this file is installed as /etc/elinks/elinks.conf like
contrib/debian/rules does, and people then modify it, they cannot
easily upgrade to changed defaults in later ELinks versions; these
changes may even be security-related, like ecmascript.enable in the
upcoming ELinks 0.12.0.  It is better if /etc/elinks/elinks.conf
contains only the settings that the sysadmin explicitly wants to
change from the defaults, and all the rest comes from the elinks
binary.
2007-05-20 14:22:36 +02:00
Kalle Olavi Niemitalo
0fc74268a0 contrib/elinks.conf: Update from -config-dump.
Just to show how badly it was out of date.
2007-05-20 14:22:30 +02:00
Kalle Olavi Niemitalo
1ed48a53f4 NEWS: more AsciiDoc markup 2007-05-20 14:22:26 +02:00
Kalle Olavi Niemitalo
bb110e1021 NEWS: merge most categories, sort by severity, sync 0.11.3.GIT 2007-05-20 14:22:21 +02:00
Jonas Fonseca
211ffef1e6 Refactor test-sgml-parser-basic to work with non-bash shells
A problem with \n replacement caused test no. 19 to fail.
Fix it by also allowing expected output to be prepared in a
file by introducing a new backend: test_output_equals_file,
also used test_output_equals.

Tested on Ubuntu Feisty Fawn with both /bin/bash and /bin/sh
where /bin/sh failed before the fix. Reported by Witek.
2007-05-20 14:22:15 +02:00
Kalle Olavi Niemitalo
dab6062347 NEWS: prune some build fixes that were backported already 2007-05-20 14:22:09 +02:00
Jonas Fonseca
e1c59759a1 Mention testing of po updates without installing ELinks
Also, fix bugzilla URL.
2007-05-20 14:22:00 +02:00
Jonas Fonseca
39db04ff39 Check if the program path contains "src/" before using ../po files
Don't look for gettext message catalogs in ../po/ unless ELinks is being
run as src/elinks, ./src/elinks, or .../src/elinks.

Discovered by Arnaud Giersch, this alternate fix (than what is in debian
package 0.11.1-1.4) closes debian bug #417789 and redhat bug #235411.
Also reported in: CVE-2007-2027.

Restricting it to only work with --enable-debug was also considered,
however, it is an important feature for translaters so this less
paranoid fix was chosen.
2007-05-20 14:21:53 +02:00
Kalle Olavi Niemitalo
ec1c62bfc6 NEWS: Add newlines to make AsciiDoc realize these are lists. 2007-05-20 14:21:47 +02:00
Kalle Olavi Niemitalo
ec92604b8c NEWS: shorten, reformat, and sort by severity 2007-05-20 14:21:42 +02:00
Kalle Olavi Niemitalo
e0bd7d1b16 NEWS: updates to bugs 691, 725, 788, 790 2007-05-20 14:21:37 +02:00
Kalle Olavi Niemitalo
2061d58dd2 NEWS: finished scan of bugzilla.elinks.cz 2007-05-20 14:21:32 +02:00
Kalle Olavi Niemitalo
9e180725f9 NEWS: sync from 0.11.3.GIT (705f8d549f) 2007-05-20 14:21:26 +02:00
Kalle Olavi Niemitalo
5a33f07a04 doc/release.txt: Don't speculate on the release date. 2007-05-20 14:21:21 +02:00
Kalle Olavi Niemitalo
bda58da008 Bug 947, NEWS: The option is wrap_nbsp, not wrap_html. 2007-05-20 14:21:16 +02:00
Kalle Olavi Niemitalo
bf71d024bc Debian bug 380347: Prevent a buffer overflow in entity_cache. 2007-05-20 14:21:09 +02:00
Kalle Olavi Niemitalo
7d9d95961b Revert 2d6840b9, "Only set the socket protocol family on success."
Revert commit 2d6840b9bd9d3a7a45a5ad92b4e98ff7224d6d97.  It is causing
passive FTP via IPv6 to fail on ftp.funet.fi.  ELinks sends PASV and
the server says "425 You cannot use PASV on IPv6 connections. Use EPSV
instead."
2007-05-20 14:20:54 +02:00
Kalle Olavi Niemitalo
07548d5a75 Bug 816, html_textarea: Expand entity references.
Because the renderer no longer does that.
The comment "We don't cope well with entities here" may now be
obsolete but I'm not sure about that so I'm leaving it in.
2007-05-20 14:20:49 +02:00
Kalle Olavi Niemitalo
fc4838b740 html_textarea: Use memmove rather than memcpy.
This is an overlapping copy and memcpy is not required to support that.
2007-05-20 14:20:44 +02:00
Kalle Olavi Niemitalo
0b10539d10 Bug 784: Add html_context->doc_cp and parse attributes with it.
options->cp is still used for this in seven places where html_context
is not easily available.  Those should eventually be corrected too,
but I'm checking this change in already because it's better than what
we had before.
2007-05-20 14:20:35 +02:00
Kalle Olavi Niemitalo
483386a6e5 NEWS: mention bug 816 2007-05-20 14:05:47 +02:00
Kalle Olavi Niemitalo
3e16757753 Bug 784: Keep form_control.default_value in the document charset.
Previously, html_special_form_control converted
form_control.default_value to the terminal charset, and init_form_state
then copied the value to form_state.value.  However, when CONFIG_UTF8
is defined and UTF-8 I/O is enabled, form_state.value is supposed to
be in UTF-8, rather than in the terminal charset.

This mismatch could not be conveniently fixed in
html_special_form_control because that does not know which terminal is
being used and whether UTF-8 I/O is enabled there.  Also, constructing
a conversion table from the document charset to form_state.value could
have ruined renderer_context.convert_table, because src/intl/charsets.c
does not support multiple concurrent conversion tables.

So instead, we now keep form_control.default_value in the document
charset, and convert it in the viewer each time it is needed.  Because
the result of the conversion is kept in form_state.value between
incremental renderings, this shouldn't even slow things down too much.

I am not implementing the proper charset conversions for the DOM
defaultValue property yet, because the current code doesn't have
them for other string properties either, and bug 805 is already open
for that.
2007-05-20 14:05:39 +02:00
Kalle Olavi Niemitalo
ec5d0cf0a7 Apply form history to fs->value, not fc->default_value.
I am going make fc->default_value use the charset of the document, and
recoding the string from the form history to that might lose characters.

This change also affects what ECMAScript sees in the defaultValue property.
<http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/html.html#ID-26091157>
says it should represent the HTML "value" attribute, so changing it
based on form history is not appropriate.
2007-05-20 14:05:32 +02:00
Kalle Olavi Niemitalo
3918c8ef1c Document the meaning of document_options.cp.
Miciah provided part of the text.
2007-05-20 14:05:27 +02:00
Laurent Monin
028cd1c4fe Bug 816, html_special_form_control: Don't parse character entity references. 2007-05-20 14:05:22 +02:00