Commit Graph

155 Commits

Author SHA1 Message Date
John Mark Bell
ed5a93caad [project @ 2005-06-28 23:46:16 by jmb]
Using Iconv to convert between an encoding and itself is pretty pointless.

svn path=/import/netsurf/; revision=1772
2005-06-28 23:46:16 +00:00
Adrian Lees
8aed1103b6 [project @ 2005-06-27 01:57:54 by adrianl]
Fix termination of output from url_escape

svn path=/import/netsurf/; revision=1770
2005-06-27 01:57:54 +00:00
John Mark Bell
5817f82ba8 [project @ 2005-06-26 22:18:37 by jmb]
Improve clarity of use of utf8_to_enc.
Remove use of curl_escape - url_escape does similar things, just better.

svn path=/import/netsurf/; revision=1766
2005-06-26 22:18:37 +00:00
John Mark Bell
0bcfdbeb50 [project @ 2005-06-07 21:29:26 by jmb]
Lose cnv_str_local_enc and friends.
UTF-8 conversion functions now return an enumerated type allowing for fallbacks, if appropriate.

svn path=/import/netsurf/; revision=1744
2005-06-07 21:29:26 +00:00
James Bursa
0e894ca80b [project @ 2005-05-24 20:22:14 by bursa]
Remove unnecessary include.

svn path=/import/netsurf/; revision=1737
2005-05-24 20:22:14 +00:00
John Mark Bell
fd99b1e906 [project @ 2005-05-23 22:27:37 by jmb]
Tighten up entry conditions

svn path=/import/netsurf/; revision=1735
2005-05-23 22:27:37 +00:00
James Bursa
5137041fed [project @ 2005-05-11 20:33:25 by bursa]
Remove no longer used memory pool code.

svn path=/import/netsurf/; revision=1720
2005-05-11 20:33:25 +00:00
James Bursa
b05bef4a61 [project @ 2005-04-30 14:31:48 by bursa]
Fix bug in url_up_re which caused /xy/../ not to be recognised when xy was 2 characters. Add defines for match part numbers. Simplify part 6(g) of url_join().

svn path=/import/netsurf/; revision=1704
2005-04-30 14:31:48 +00:00
John Mark Bell
a051b36ae7 [project @ 2005-04-23 22:26:05 by jmb]
Make url_join match the spec - see http://www.ics.uci.edu/~fielding/url/test1.html for testcases.

svn path=/import/netsurf/; revision=1682
2005-04-23 22:26:05 +00:00
Adrian Lees
9c1cb7bb2d [project @ 2005-04-23 02:58:27 by adrianl]
Query windows, desktop save protocol, confirm abort/quit when downloads in progress

svn path=/import/netsurf/; revision=1679
2005-04-23 02:58:27 +00:00
Adrian Lees
8da644f442 [project @ 2005-04-21 21:36:23 by adrianl]
Dragging URLs into toolbar URL icon; keyboard actions in textareas conform to Wimp's icon editing; display of scale % fixed for 120%

svn path=/import/netsurf/; revision=1676
2005-04-21 21:36:23 +00:00
Adrian Lees
f10db1f6f1 [project @ 2005-04-16 08:19:56 by adrianl]
missing #include

svn path=/import/netsurf/; revision=1651
2005-04-16 08:20:20 +00:00
John Mark Bell
1da8ee63a3 [project @ 2005-04-16 05:16:18 by jmb]
Lose \todo

svn path=/import/netsurf/; revision=1649
2005-04-16 05:16:18 +00:00
John Mark Bell
d43dc8839e [project @ 2005-04-16 05:10:08 by jmb]
Don't unescape characters 0x80->0xFF

svn path=/import/netsurf/; revision=1648
2005-04-16 05:10:08 +00:00
John Mark Bell
c17dc661ea [project @ 2005-04-16 05:09:32 by jmb]
Split out UTF-8 handling functions.
Submit URL-encoded forms in sensible encoding:
  * First entry in accept-charset list, if present
  * Document encoding, otherwise
  We may want to explicitly look for UTF-8, to save converting.
Convert cnv_str_local_enc/cnv_local_enc_str to use iconv (they're now veneers for utf8_[to/from]_enc).
Provide mechanism for looking up local system charset (derived from system alphabet, under RISC OS)

svn path=/import/netsurf/; revision=1647
2005-04-16 05:09:33 +00:00
Adrian Lees
25e9cbf55b [project @ 2005-04-15 05:52:04 by adrianl]
Defined NOF_ELEMENTS utility macro

svn path=/import/netsurf/; revision=1635
2005-04-15 05:52:04 +00:00
James Bursa
fef4301a74 [project @ 2005-04-03 10:56:49 by bursa]
Talloc memory allocation functions from Samba.

svn path=/import/netsurf/; revision=1591
2005-04-03 10:56:49 +00:00
John Mark Bell
a91cd77902 [project @ 2005-02-14 22:35:05 by jmb]
Fix bug in regex

svn path=/import/netsurf/; revision=1513
2005-02-14 22:35:05 +00:00
John Mark Bell
0c7b9496ef [project @ 2005-02-14 21:20:26 by jmb]
Make regex work with latest unixlib.
Fix incorrect return value

svn path=/import/netsurf/; revision=1512
2005-02-14 21:20:26 +00:00
Richard Wilson
2affb76944 [project @ 2005-02-03 13:18:22 by rjw]
Implementation of URL suggestion

svn path=/import/netsurf/; revision=1488
2005-02-03 13:18:22 +00:00
James Bursa
f0b264670e [project @ 2005-01-13 22:42:38 by bursa]
Start on theme auto-install. Fix content_add_user() not to broadcast error on memory exhaustion.

svn path=/import/netsurf/; revision=1448
2005-01-13 22:42:39 +00:00
James Bursa
a1fe308d13 [project @ 2005-01-02 14:41:07 by bursa]
regexec() returns int, not a pointer.

svn path=/import/netsurf/; revision=1425
2005-01-02 14:41:07 +00:00
John Mark Bell
7a49cba9f3 [project @ 2005-01-02 04:01:21 by jmb]
Lose warning

svn path=/import/netsurf/; revision=1420
2005-01-02 04:01:21 +00:00
John Mark Bell
8334683068 [project @ 2005-01-02 03:58:20 by jmb]
xcalloc/xrealloc/xstrdup-purge - Lose remaining calls (and purge the relevant functions from utils.c)

svn path=/import/netsurf/; revision=1419
2005-01-02 03:58:21 +00:00
James Bursa
de508f98a7 [project @ 2004-12-09 22:23:32 by bursa]
Remove die() from squash_whitespace(). All calls need checking.

svn path=/import/netsurf/; revision=1399
2004-12-09 22:23:32 +00:00
Kevin Bagust
b80f6a7380 [project @ 2004-12-08 12:38:27 by kevinb]
Altered calls to xfree into calls to free in clean_cookiejar

svn path=/import/netsurf/; revision=1392
2004-12-08 12:38:27 +00:00
Kevin Bagust
e11c05d257 [project @ 2004-12-08 00:10:17 by kevinb]
Removed unused function load, and altered call to xcalloc into a call to calloc in clean_cookiejar

svn path=/import/netsurf/; revision=1389
2004-12-08 00:10:17 +00:00
John Mark Bell
93f8d3badc [project @ 2004-10-05 14:36:44 by jmb]
Lose RISC OS specific includes from GIF code.
Fix jpegs for the gtk build.
Allow use of gifs in gtk build.

svn path=/import/netsurf/; revision=1303
2004-10-05 14:36:44 +00:00
John Mark Bell
49ce807e3c [project @ 2004-10-01 21:31:55 by jmb]
A somewhat better implementation of referrers which no longer sends the referer if the URL schemes don't match.

Things to do:
1) Preservation of referer across redirects (see comment in browser.c:284)
2) GUI templates/code for configuration of referer sending (simple on/off toggle only)
3) Make referer sending when fetching objects/stylesheets for a page pay attention to option_send_referer?
4) Handle the case where the referer is in the form of http://moo:foo@mysite.com/ (ie the login details embedded in the referer - not good).

svn path=/import/netsurf/; revision=1297
2004-10-01 21:31:55 +00:00
James Bursa
3371a27391 [project @ 2004-09-03 22:44:47 by bursa]
Add generic bitmap functions. Move jpeg and mng code from riscos/ to image/ and update to use bitmap. Note: background tiling and drawfile export for jpeg and mng/png are broken.

svn path=/import/netsurf/; revision=1265
2004-09-03 22:44:48 +00:00
John Tytgat
7264ae50e5 [project @ 2004-08-14 15:07:19 by joty]
- Rename len() to css_len2px().
- Less compiler warnings concerning float/int implicit casts.
- More stddef.h type usuage.

svn path=/import/netsurf/; revision=1232
2004-08-14 15:07:21 +00:00
John Mark Bell
c9bd6fa9fc [project @ 2004-08-09 16:11:58 by jmb]
Rework the interface of the URL handing module to allow for multiple error types.
Modify save_complete URL rewriting appropriately.

svn path=/import/netsurf/; revision=1206
2004-08-09 16:11:58 +00:00
John Mark Bell
9e52a06935 [project @ 2004-08-09 07:37:29 by jmb]
Checkin missing config.h update

svn path=/import/netsurf/; revision=1203
2004-08-09 07:37:29 +00:00
John Mark Bell
f68d4491be [project @ 2004-08-06 22:20:36 by jmb]
Make the likes of <a href="#foo"> work

svn path=/import/netsurf/; revision=1188
2004-08-06 22:20:36 +00:00
John Mark Bell
4f3691d183 [project @ 2004-08-05 20:32:00 by jmb]
Text search. Press F4 to access it

svn path=/import/netsurf/; revision=1182
2004-08-05 20:32:00 +00:00
James Bursa
7114ceadd5 [project @ 2004-07-28 22:35:02 by bursa]
Heap debugging functions and log analysis script.

svn path=/import/netsurf/; revision=1156
2004-07-28 22:35:02 +00:00
John Mark Bell
67b0b7be62 [project @ 2004-07-27 20:44:46 by jmb]
Language configuration menu
Make adjust clicks on font size arrows style guide compliant

svn path=/import/netsurf/; revision=1154
2004-07-27 20:44:46 +00:00
Andrew Timmins
b02f6fa9a0 [project @ 2004-07-25 19:25:26 by atimmins]
Updated to support paned config dialog.

svn path=/import/netsurf/; revision=1143
2004-07-25 19:25:26 +00:00
John Tytgat
23e408a978 [project @ 2004-07-19 20:49:34 by joty]
Build fix (part 2).

svn path=/import/netsurf/; revision=1119
2004-07-19 20:49:34 +00:00
John Tytgat
c4fe691ea4 [project @ 2004-07-19 20:43:25 by joty]
Build fix.

svn path=/import/netsurf/; revision=1118
2004-07-19 20:43:25 +00:00
John Tytgat
f94da48139 [project @ 2004-07-19 20:29:47 by joty]
Added cnv_local_enc_str() : to convert string in local machine encoding
into UTF-8 NUL terminated string.

svn path=/import/netsurf/; revision=1116
2004-07-19 20:29:47 +00:00
Andrew Timmins
a3925b4ffc [project @ 2004-07-19 19:34:07 by atimmins]
Updated to support NCNetSurf build options

svn path=/import/netsurf/; revision=1115
2004-07-19 19:34:07 +00:00
Andrew Timmins
86f60c4c0a [project @ 2004-07-18 22:21:32 by atimmins]
svn path=/import/netsurf/; revision=1097
2004-07-18 22:21:32 +00:00
Richard Wilson
b7bb766e95 [project @ 2004-07-16 19:47:02 by rjw]
Fix for hotlist menu selection. Interface for MNG/JNG display.

svn path=/import/netsurf/; revision=1083
2004-07-16 19:47:03 +00:00
John Tytgat
9295b0bcb1 [project @ 2004-07-08 20:13:35 by joty]
Log function name too when compiling with Norcroft.

svn path=/import/netsurf/; revision=1058
2004-07-08 20:13:35 +00:00
John Tytgat
a0d511734a [project @ 2004-07-05 20:19:51 by joty]
Using UTF-8 instead of Latin1 encoding.

svn path=/import/netsurf/; revision=1049
2004-07-05 20:19:52 +00:00
James Bursa
a1d73ecd11 [project @ 2004-06-27 23:24:11 by bursa]
Rewritten download window. Now downloads direct to file. New download window gui.

svn path=/import/netsurf/; revision=1020
2004-06-27 23:24:11 +00:00
James Bursa
86206259fe [project @ 2004-06-21 15:25:35 by bursa]
Remove obsolete files and some dead code.

svn path=/import/netsurf/; revision=988
2004-06-21 15:27:56 +00:00
James Bursa
08177fa581 [project @ 2004-06-10 20:41:26 by bursa]
Add global content list. Better error handling in content code. Improved code documentation. Remove some obsolete functions. Implement debug window listing contents.

svn path=/import/netsurf/; revision=951
2004-06-10 20:41:26 +00:00
James Bursa
e3833d52a2 [project @ 2004-06-08 10:56:21 by bursa]
Ignore whitespace at the start and end of URLs.

svn path=/import/netsurf/; revision=935
2004-06-08 10:56:21 +00:00
James Bursa
aebd66fbba [project @ 2004-06-02 20:53:37 by bursa]
Make config change according to build.

svn path=/import/netsurf/; revision=906
2004-06-02 20:53:37 +00:00
Matthew Hambley
5de4fdf37b [project @ 2004-05-20 20:55:36 by matthewh]
Added a .cvsignore file to hide automatically built files

svn path=/import/netsurf/; revision=874
2004-05-20 20:55:36 +00:00
Richard Wilson
3f0f5d7be9 [project @ 2004-05-12 10:23:07 by rjw]
Interactive help keys made more descriptive.
Message key length increased to 24.

svn path=/import/netsurf/; revision=856
2004-05-12 10:23:07 +00:00
James Bursa
7356aa96c9 [project @ 2004-05-08 18:13:27 by bursa]
Clean up and make more efficient.

svn path=/import/netsurf/; revision=843
2004-05-08 18:13:27 +00:00
James Bursa
9d9f208d7e [project @ 2004-05-07 19:04:59 by bursa]
Fix possible buffer under-read.

svn path=/import/netsurf/; revision=840
2004-05-07 19:04:59 +00:00
John Mark Bell
a054631f2d [project @ 2004-05-02 17:06:59 by jmb]
No longer truncate bytesize.

svn path=/import/netsurf/; revision=817
2004-05-02 17:06:59 +00:00
Matthew Hambley
d44ab700d0 [project @ 2004-04-25 11:40:05 by matthewh]
A more human face to download bytecounts.  Needs someone who can speak French to correct the fr messages file.

svn path=/import/netsurf/; revision=803
2004-04-25 11:40:05 +00:00
John Mark Bell
bfb0116bea [project @ 2004-04-21 22:51:51 by jmb]
Fix crash in tolat1_pre. Thanks to John Tytgat for reporting.

svn path=/import/netsurf/; revision=800
2004-04-21 22:51:51 +00:00
James Bursa
0bb2a027d6 [project @ 2004-04-13 23:21:03 by bursa]
Make scheme matching stricter.

svn path=/import/netsurf/; revision=779
2004-04-13 23:21:03 +00:00
James Bursa
9d4f0a373c [project @ 2004-04-12 20:43:29 by bursa]
Fix bug in url_join().

svn path=/import/netsurf/; revision=763
2004-04-12 20:43:29 +00:00
James Bursa
d5a81883e8 [project @ 2004-03-27 23:18:52 by bursa]
Implement url_nice() and make save boxes use it to choose the default filename.

svn path=/import/netsurf/; revision=682
2004-03-27 23:18:52 +00:00
James Bursa
9a204ed536 [project @ 2004-03-27 00:49:29 by bursa]
Update die() to use an error box.

svn path=/import/netsurf/; revision=673
2004-03-27 00:49:29 +00:00
John Mark Bell
7d0b144391 [project @ 2004-03-24 23:51:08 by jmb]
Text Export support.

svn path=/import/netsurf/; revision=665
2004-03-24 23:51:08 +00:00
James Bursa
d0913e33f0 [project @ 2004-03-15 15:03:34 by bursa]
Remove isspace() calls to avoid squashing nbsp (see setlocale() change).

svn path=/import/netsurf/; revision=624
2004-03-15 15:03:34 +00:00
John Mark Bell
727db7f3d6 [project @ 2004-03-05 22:15:33 by jmb]
Fix URI file dragging properly.
Fix missing fclose in load()

svn path=/import/netsurf/; revision=587
2004-03-05 22:15:33 +00:00
James Bursa
1c85bf0429 [project @ 2004-03-02 18:02:17 by bursa]
Add new url functions and modify to use them.

svn path=/import/netsurf/; revision=578
2004-03-02 18:02:41 +00:00
James Bursa
37cf580743 [project @ 2004-02-27 14:09:15 by bursa]
Implement option_language.

svn path=/import/netsurf/; revision=574
2004-02-27 14:09:15 +00:00
James Bursa
7897a98a4c [project @ 2004-02-25 15:12:57 by bursa]
Implement scaling; rewrite desktop/browser; add riscos/thumbnail; rewrite history.

svn path=/import/netsurf/; revision=566
2004-02-25 15:12:58 +00:00
John Mark Bell
36bb869ae4 [project @ 2004-02-17 23:38:44 by jmb]
Improve save_complete.
Add missing #ifdef to about.c.

svn path=/import/netsurf/; revision=559
2004-02-17 23:38:44 +00:00
John Mark Bell
6839622183 [project @ 2004-02-17 12:41:38 by jmb]
Begin save complete support.
Fix memory leak when using Select PNG renderer. (commented out lines can probably removed)

svn path=/import/netsurf/; revision=556
2004-02-17 12:41:38 +00:00
John Mark Bell
94bb784e4a [project @ 2004-02-15 22:22:38 by jmb]
Add reminder to update Docs/Doxyfile too.

svn path=/import/netsurf/; revision=550
2004-02-15 22:22:38 +00:00
John Mark Bell
3720fafac0 [project @ 2004-02-14 22:26:35 by jmb]
Draw export module.

svn path=/import/netsurf/; revision=541
2004-02-14 22:26:35 +00:00
John Mark Bell
0dab93fe76 [project @ 2004-01-20 19:08:34 by jmb]
Allow toggling of POST support.
Add new toolbar icon numbers to riscos/gui.h

svn path=/import/netsurf/; revision=490
2004-01-20 19:08:34 +00:00
John Mark Bell
62245d13ec [project @ 2004-01-05 02:10:59 by jmb]
Add ability to turn off browser features in build.
This may be useful when hunting down bugs.

svn path=/import/netsurf/; revision=480
2004-01-05 02:10:59 +00:00
James Bursa
314a53cd63 [project @ 2004-01-02 12:04:29 by bursa]
Implement memory pools.

svn path=/import/netsurf/; revision=478
2004-01-02 12:04:29 +00:00
John Mark Bell
25ec7fcc34 [project @ 2003-12-30 16:47:16 by jmb]
Read cookie file from the correct path

svn path=/import/netsurf/; revision=472
2003-12-30 16:47:16 +00:00
John Mark Bell
9f963dbf96 [project @ 2003-12-29 22:20:52 by jmb]
Escape @ symbol in email address.

svn path=/import/netsurf/; revision=469
2003-12-29 22:20:52 +00:00
Michael Drake
f3aa842441 [project @ 2003-12-29 20:16:37 by tlsa]
Use Acorn-defined characters

svn path=/import/netsurf/; revision=468
2003-12-29 20:16:37 +00:00
John Mark Bell
4e2345da92 [project @ 2003-12-29 18:59:15 by jmb]
Comment out unnecessary call to cache_dump from html_process_data.
Add Licence and relevant #include to tt2code. Stops the compiler moaning
about no definition of unicode_transliterate.

svn path=/import/netsurf/; revision=467
2003-12-29 18:59:15 +00:00
James Bursa
4fcbc23c1c [project @ 2003-12-29 00:38:59 by bursa]
Transliterate Unicode to Latin1 using Markus Kuhn's transtab.

svn path=/import/netsurf/; revision=465
2003-12-29 00:38:59 +00:00
John Mark Bell
b0b2ec850f [project @ 2003-12-28 02:35:46 by jmb]
Remove expired cookies from the cookiejar.
Cookies are removed every time a window is closed and when NetSurf is
quit.
/me slaps libcurl for not doing it itself.

Make cookie_create() read the cookie jar location from the messages file.

svn path=/import/netsurf/; revision=463
2003-12-28 02:35:46 +00:00
John Mark Bell
9ec88eb91f [project @ 2003-12-27 23:49:31 by jmb]
Add about:cookies.
Tidy special URL handling code (it's now been moved into url_join in
utils.c).

svn path=/import/netsurf/; revision=461
2003-12-27 23:49:31 +00:00
James Bursa
ce0d5294d5 [project @ 2003-12-27 20:15:22 by bursa]
Use charset from Content-Type header.

svn path=/import/netsurf/; revision=460
2003-12-27 20:15:23 +00:00
John Mark Bell
006a24e810 [project @ 2003-12-27 00:37:10 by jmb]
More code tidying...

svn path=/import/netsurf/; revision=453
2003-12-27 00:37:10 +00:00
James Bursa
20a6f739dc [project @ 2003-12-26 16:21:46 by bursa]
Rewrite get_host_from_url() to use uri library.

svn path=/import/netsurf/; revision=444
2003-12-26 16:21:46 +00:00
James Bursa
f1b59814f8 [project @ 2003-12-26 00:17:55 by bursa]
New url_join using liburi, <base href=...>.

svn path=/import/netsurf/; revision=441
2003-12-26 00:17:55 +00:00
John Mark Bell
96bbdbc7ab [project @ 2003-12-21 22:05:05 by jmb]
Clean up version string related mess.

svn path=/import/netsurf/; revision=438
2003-12-21 22:05:05 +00:00
John Mark Bell
4f52950690 [project @ 2003-12-19 00:59:36 by jmb]
Move version string creation to utils for easy access

svn path=/import/netsurf/; revision=432
2003-12-19 00:59:36 +00:00
James Bursa
e8def12ba2 [project @ 2003-11-07 23:47:55 by bursa]
Add is_dir().

svn path=/import/netsurf/; revision=407
2003-11-07 23:47:55 +00:00
John Mark Bell
c9e188a4d1 [project @ 2003-10-25 19:20:13 by jmb]
HTTP Auth login improved (greatly).
Addresses all three issues in the previous version.

svn path=/import/netsurf/; revision=382
2003-10-25 19:20:13 +00:00
James Bursa
bbcdf13fe0 [project @ 2003-10-07 21:34:39 by bursa]
Implement white-space property.

svn path=/import/netsurf/; revision=348
2003-10-07 21:34:39 +00:00
James Bursa
15d57a6634 [project @ 2003-08-16 18:39:10 by bursa]
New portable messages module.

svn path=/import/netsurf/; revision=244
2003-08-16 18:39:10 +00:00
James Bursa
017fc4eb4b [project @ 2003-06-30 12:44:02 by bursa]
New file headers.

svn path=/import/netsurf/; revision=190
2003-06-30 12:44:03 +00:00
James Bursa
80fe931f80 [project @ 2003-05-22 13:21:45 by bursa]
Form GET support (John M Bell)

svn path=/import/netsurf/; revision=130
2003-05-22 13:21:45 +00:00
James Bursa
0267469306 [project @ 2003-04-11 21:06:51 by bursa]
Memory usage and CSS fixes.

svn path=/import/netsurf/; revision=122
2003-04-11 21:06:51 +00:00
James Bursa
2253e38be8 [project @ 2003-04-05 21:38:06 by bursa]
External stylesheets.

svn path=/import/netsurf/; revision=115
2003-04-05 21:38:06 +00:00
James Bursa
a4c5929a2f [project @ 2003-02-09 12:58:14 by bursa]
Reorganization and rewrite of fetch, cache, and content handling.

svn path=/import/netsurf/; revision=96
2003-02-09 12:58:15 +00:00
James Bursa
405e2321a8 [project @ 2003-01-07 23:15:23 by bursa]
Clean up many compiler warnings.

svn path=/import/netsurf/; revision=88
2003-01-07 23:15:23 +00:00
James Bursa
53c0e810e5 [project @ 2002-10-08 09:38:29 by bursa]
LOG(()) macro for easier debugging.

svn path=/import/netsurf/; revision=41
2002-10-08 09:38:29 +00:00
Phil Mellor
811106028f [project @ 2002-09-11 14:24:02 by monkeyson]
RISC OS Wimp GUI.

svn path=/import/netsurf/; revision=33
2002-09-11 14:24:02 +00:00