1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00
Commit Graph

2933 Commits

Author SHA1 Message Date
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
Kalle Olavi Niemitalo
53cd0dcc95 Document the charset of form_state.value for FC_TEXTAREA. 2007-05-20 14:05:17 +02:00
Kalle Olavi Niemitalo
d66dc7341c NEWS: mention bugs 928, 947 2007-05-20 14:05:11 +02:00
Kalle Olavi Niemitalo
f70c14a706 Bug 947, set_hline: Also recognize NBSP_CHAR #ifndef CONFIG_UTF8. 2007-05-20 14:05:05 +02:00
Kalle Olavi Niemitalo
55102e5f8a Bugs 879, 928, 947: Specially map U+00A0 and U+00AD in translation tables. 2007-05-20 14:05:00 +02:00
Kalle Olavi Niemitalo
c108a425ce Bug 947, set_hline: Respect wrap_nbsp also if !part->document.
This does not yet fix bug 947 for the case where the document is UTF-8
and the terminal is ISO-8859-1.  That will require changing charsets.c
too, it seems.
2007-05-20 14:04:54 +02:00
Kalle Olavi Niemitalo
3baf35b30e set_hline: Outdent some code. 2007-05-20 14:04:50 +02:00
Kalle Olavi Niemitalo
49a3bef153 Bug 879, set_hline: Discard U+00AD SOFT HYPHEN characters if UTF-8.
If not UTF-8, then charsets.c has already discarded them.
2007-05-20 14:04:43 +02:00
Kalle Olavi Niemitalo
c85a226ea4 Bug 879: New constant UCS_SOFT_HYPHEN; use where applicable. 2007-05-20 14:04:36 +02:00
Kalle Olavi Niemitalo
e11b784067 Bug 879, u2cp_: Use UCS_NO_BREAK_SPACE instead of 0xa0. 2007-05-20 14:04:30 +02:00
Kalle Olavi Niemitalo
d18fc9f33d Add contrib/mkdist, used for making ELinks snapshots and releases.
This is the mkdist to which doc/release.txt refers.
The script was originally written by Pasky and then modified by Fonseca.
This version doesn't know the correct directory names and so won't work
without modifications, but it seems better to check it in now than wait.
2007-05-20 14:04:20 +02:00
Witold Filipczyk
86523110d8 DOM: Part of Node properties defined. 2007-05-19 23:16:26 +02:00