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

2785 Commits

Author SHA1 Message Date
Kalle Olavi Niemitalo
dafba56f7e SMJS: Assert that form_number of input_class is in range. 2007-05-27 20:52:48 +02:00
Kalle Olavi Niemitalo
62257c20af SEE: Assert that js_input.form_number is in range. 2007-05-27 20:52:41 +02:00
Kalle Olavi Niemitalo
5e0b86309c SMJS: comment changes 2007-05-27 20:50:29 +02:00
Kalle Olavi Niemitalo
09d0e88878 SMJS: Use JS_GetInstancePrivate where applicable.
This is a further precaution against reading a pointer from the wrong
type of object.  All of the JS_GetPrivate calls were already protected
with JS_InstanceOf checks if assertions are enabled, and many of them
also if assertions are not enabled.
2007-05-27 20:50:20 +02:00
Kalle Olavi Niemitalo
0417d84e74 SMJS: Check return values of JS_ValueToInt32. 2007-05-27 20:50:12 +02:00
Kalle Olavi Niemitalo
0d39a215c3 NEWS: Bug 951 now has a number.
I trust Miciah will change the "their" to "them" if appropriate.
2007-05-27 18:30:58 +02:00
Kalle Olavi Niemitalo
ff9fd492da NEWS: Compilation under gcc 4.x was fixed already in 0.11.3. 2007-05-27 09:59:45 +02:00
Kalle Olavi Niemitalo
7fbf64ec9d NEWS: remove what seems to be a duplicate of bug 950 2007-05-27 09:59:40 +02:00
Kalle Olavi Niemitalo
3f4846add0 Compare screen_driver.name with strcmp, not memcmp.
screen_driver_change_hook was comparing only strlen(name) characters
and ignoring the '\0'.  To reproduce the bug in ELinks 0.11.3 and
ELinks 0.12.GIT:

- Run TERM=screen elinks.
- In another terminal, run TERM=scr elinks.  Quit this slave ELinks.
- Open the terminal options dialog and set 16 colors.
- Open the option manager and change the terminal.scr.colors option to
  1 and back to 0.
- Note that ELinks no longer displays colors.

That bug could be fixed just by using len+1 instead of len.  However,
there is also another bug: memcmp may compare the specified number of
bytes, even if some of the earlier ones differ; thus, it could in
principle read past the end of the malloc block and thereby crash
ELinks.  Using strcmp may be a little slower but I do not believe it
could become a bottleneck.
2007-05-27 09:59:35 +02:00
Jonas Fonseca
6d14d95386 Simplify TESTDEPS maintainance by adding common objects in Makefile.lib 2007-05-26 20:21:15 +02:00
Jonas Fonseca
447fd16ae0 Fix 'make test' dependency when building test utility programs
Problems was caused by undefined symbols:

	src/util/conv.c:308: undefined reference to `is_cp_utf8'
	src/util/conv.c:320: undefined reference to `cp2u'
2007-05-26 20:21:09 +02:00
Jonas Fonseca
bd0e3a5bc1 DOM test: add test/ to SUBDIRS so DOM test is run for 'make test' 2007-05-26 20:21:03 +02:00
Jonas Fonseca
c192551773 DOM test: make die() in sgml-parser static 2007-05-26 20:20:58 +02:00
Jonas Fonseca
ee8a3fe651 DOM test: refactor options parsing in sgml-parser
Introduce get_opt() to do the tedious work of getting the right
argument for options expecting them and handles both '--opt=arg'
and '--opt arg'. As a side effect it also removes an unneeded
assignment of the source string for stdin.
2007-05-26 20:20:51 +02:00
Witold Filipczyk
c8d345aa12 Revert "make test: Fixed."
This reverts commit 4142f3c80a.
2007-05-26 20:18:39 +02:00
Witold Filipczyk
4142f3c80a make test: Fixed. 2007-05-26 20:09:40 +02:00
Witold Filipczyk
df3c3083f6 DOM: done_dom_html_data is accessible only with ECMASCRIPT enabled. 2007-05-26 13:09:17 +02:00
Jonas Fonseca
201ce1ec85 Use printf to handle test string containing escapes more portable
Works with both bash and dash. This reintroduces the fix to the
test-sgml-parser-basic test, and also fixes test-sgml-parser-incremental
and test-sgml-parser-lines, which Witek has reported as failing.
2007-05-26 13:01:22 +02:00
Jonas Fonseca
7d2eb84de0 Revert "Refactor test-sgml-parser-basic to work with non-bash shells"
This reverts commit 3f93148c9b.
2007-05-26 13:01:16 +02:00
Witold Filipczyk
21ed212b15 shadow: Draw a transparent shadow on the Linux console, too.
set ui.colors.color.dialog.shadow.text = "#555555"
set ui.colors.color.dialog.shadow.background = "black"

and enjoy!
2007-05-25 11:51:40 +02:00
Kalle Olavi Niemitalo
2bcf3c8e6c NEWS: Bug 950 now has a number. 2007-05-24 18:28:28 +02:00
Witold Filipczyk
1b85b63f97 file: set_nonblocking_fd when reading from the copiousoutput's pipe. 2007-05-24 12:29:29 +02:00
Witold Filipczyk
e75522d19c DOM: Defined properties of HTML elements.
All of them are the "unsigned char *" type. This should be changed.
2007-05-23 22:57:55 +02:00
Witold Filipczyk
d4adfb3cd0 bug 755: Fixed.
Remember the index of struct form_state in vs->form_info
instead of the pointer to it. The pointer may change,
the index is persistent.
The field ecmascript_obj of the struct form_state is unused.
2007-05-22 16:07:06 +02:00
Witold Filipczyk
b09135a612 SEE: bug 755 doesn't occur. 2007-05-22 10:45:36 +02:00
Witold Filipczyk
bb59860c23 ecmascript: Convert numbers using JS_ValueToInt32. 2007-05-22 09:36:39 +02:00
Witold Filipczyk
08cab91214 bug 755: attempt to fix this bug. 2007-05-21 12:50:27 +02:00
Witold Filipczyk
f70e438820 DOM: node was unitialized. 2007-05-20 21:03:15 +02:00
Witold Filipczyk
ca62325a53 speech: Compilation fix. 2007-05-20 20:39:54 +02:00
Kalle Olavi Niemitalo
87b086a046 NEWS: mention bug 461 2007-05-20 20:21:58 +02:00
Kalle Olavi Niemitalo
dfb74267f8 Bug 461: Ensure contrast when filling with spaces.
So that the cursor will be visible in the Linux console.
2007-05-20 20:21:52 +02:00
Kalle Olavi Niemitalo
e57d1f6aba And ignore ID files while we're at it. 2007-05-20 20:21:47 +02:00
Kalle Olavi Niemitalo
2a2203ef92 Place the TAGS file in the source directory. 2007-05-20 20:21:40 +02:00
Kalle Olavi Niemitalo
d69cf888ef Bug 822: Make --enable-utf-8 the default.
Experimental features should be disabled by default, so this is no
longer considered experimental.
2007-05-20 20:21:34 +02:00
Kalle Olavi Niemitalo
d562bdc77c Document terminal._template_.m11_hack more and add comments. 2007-05-20 20:21:27 +02:00
Kalle Olavi Niemitalo
ed88ddf1a3 Bug 914: Add screen_driver_opt.utf8_cp, not yet read. 2007-05-20 20:21:19 +02:00
Kalle Olavi Niemitalo
44e8a38693 Bug 914: Don't let UTF-8 I/O affect internal representations.
Use it for the actual I/O only.  Previously, defining CONFIG_UTF8 and
enabling UTF-8 used to force many strings to the UTF-8 charset
regardless of the terminal charset option.  Now, those strings always
follow the terminal charset.  This fixes bug 914 which was caused
because _() returned strings in the terminal charset and functions
then assumed they were in UTF-8.  This reduction in the effects of
UTF-8 I/O may also simplify future testing.
2007-05-20 20:11:55 +02:00
Kalle Olavi Niemitalo
ad669a3f0f Bug 914: Add terminal.utf8_cp, not yet read. 2007-05-20 20:11:48 +02:00
Witold Filipczyk
774471b6d1 DOM: Some methods of the Element interface defined. 2007-05-20 19:51:25 +02:00
Witold Filipczyk
11171beb2b Polish translation was updated. 2007-05-20 16:59:45 +02:00
Witold Filipczyk
4758aa9299 Polish translation was updated. 2007-05-20 16:59:06 +02:00
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