Commit Graph

3346 Commits

Author SHA1 Message Date
John Mark Bell 2b79c34977 Squash warning
svn path=/trunk/netsurf/; revision=4190
2008-05-23 14:17:31 +00:00
John Mark Bell a16586c9b7 Use local filetype directly, if we're "downloading" a local file
svn path=/trunk/netsurf/; revision=4189
2008-05-23 13:29:37 +00:00
Daniel Silverstone b30fde8b21 Use CCACHE if available on non-riscos host platforms
svn path=/trunk/netsurf/; revision=4179
2008-05-19 13:36:32 +00:00
Michael Drake 181573d081 Fix bitmap format comment.
svn path=/trunk/netsurf/; revision=4168
2008-05-16 23:04:41 +00:00
John Mark Bell fbb483e0ff Fix type of value_was_quoted member of cookie_data struct.
svn path=/trunk/netsurf/; revision=4166
2008-05-16 10:27:01 +00:00
John Mark Bell b15a6af3d2 s/wchar_t/uint32_t/g
We always assumed that the keycode type was 32bits wide, anyway. wchar_t isn't guaranteed to be that big, so isn't remotely portable.

svn path=/trunk/netsurf/; revision=4165
2008-05-16 09:37:22 +00:00
John Mark Bell baca6796eb Ensure we've got a definition for size_t
svn path=/trunk/netsurf/; revision=4157
2008-05-14 10:23:22 +00:00
John Mark Bell dd54de03de Remove keypress restrictions from icon validation strings. At some point in future we should do this properly by having the validation string change dynamically as appropriate.
svn path=/trunk/netsurf/; revision=4156
2008-05-13 23:31:21 +00:00
John Mark Bell 1f2219aead Make this obey WITH_MNG correctly -- previously included libmng.h regardless
svn path=/trunk/netsurf/; revision=4155
2008-05-13 21:38:30 +00:00
John Mark Bell 23fb72ea6b The core code has always assumed a locale of "C".
Do not change the locale globally, else things will break in weird and 
wonderful ways.

Introduce utils/locale.[ch], which provide locale-specific wrappers for various 
functions (currently just the <ctype.h> ones).

Fix up the few places I can see that actually require that the underlying 
locale is paid attention to.

Some notes:

  1) The GTK frontend code has not been touched. It is possible that reading of 
     numeric values (e.g. from the preferences dialogue) may break with this 
     change, particularly in locales that use something other than '.' as their
     decimal separator.
  2) The search code is left unchanged (i.e. assuming a locale of "C"). 
     This may break case insensitive matching of non-ASCII characters. 
     I doubt that ever actually worked, anyway. In future, it should use
     Unicode case conversion to achieve the same effect.
  3) The text input handling in the core makes use of isspace() to detect
     word boundaries. This is fine for western languages (even in the C locale,
     which it's currently assuming). It will, however, break for CJK et. al. 
     (this has always been the case, rather than being a new issue)
  4) text-transform uses locale-specific variants of to{lower,upper}. In future
     this should probably be performing Unicode case conversion. This is the
     only part of the core code that makes use of locale information.

In future, if you require locale-specific behaviour, do the following:

  setlocale(LC_<whatever>, "");
  <your operation(s) here>
  setlocale(LC_<whatever>, "C");

  The first setlocale will change the current locale to the native environment.
  The second setlocale will reset the current locale to "C".
  Any value other than "" or "C" is probably a bug, unless there's a really
  good reason for it.

In the long term, it is expected that all locale-dependent code will reside in 
platform frontends -- the core being wholly locale agnostic (though assuming 
"C" for things like decimal separators).


svn path=/trunk/netsurf/; revision=4153
2008-05-13 14:37:44 +00:00
John Mark Bell 74a1095cd6 Remove unnecessary includes
svn path=/trunk/netsurf/; revision=4144
2008-05-11 10:09:44 +00:00
John Mark Bell ab62e61b55 Fix RO5 IconSprites
svn path=/trunk/netsurf/; revision=4143
2008-05-11 10:04:11 +00:00
John Mark Bell 301d71385d Correct file types
svn path=/trunk/netsurf/; revision=4142
2008-05-10 12:03:45 +00:00
John Mark Bell e6416eed54 Fix IconSprites on RO6
svn path=/trunk/netsurf/; revision=4141
2008-05-10 11:59:09 +00:00
Michael Drake 239ac40bd7 Add NetSurf Scrap/Choices directory openers.
svn path=/trunk/netsurf/; revision=4139
2008-05-10 11:12:19 +00:00
John Mark Bell 6d4e871260 Require C99 SCL in Run file. Provides a friendlier error message than "Integer too big for SharedCLibrary" when attempting to load modules that require either a 32bit or C99-capable SCL (e.g. AcornURI or Iconv)
svn path=/trunk/netsurf/; revision=4124
2008-05-04 19:04:03 +00:00
John Mark Bell cc9ab23b04 Add html extensions to minimal MIME type hash
svn path=/trunk/netsurf/; revision=4110
2008-04-28 11:08:35 +00:00
Michael Drake 7e28ca26d1 Accomodate text area scrollbars in fixed widths. Fix radio button / checkbox issue.
svn path=/trunk/netsurf/; revision=4108
2008-04-25 14:57:36 +00:00
Michael Drake 4110152a62 Change handling of form element widths / heights.
svn path=/trunk/netsurf/; revision=4107
2008-04-25 14:15:18 +00:00
Michael Drake fc4e39f5b8 Make floats that follow a cleared float heed the clear. Fixes position of search form on BBC homepage.
svn path=/trunk/netsurf/; revision=4104
2008-04-23 18:49:11 +00:00
Michael Drake e6e0fa0b32 Maybe fix table layout problem caused by r4100.
svn path=/trunk/netsurf/; revision=4103
2008-04-23 10:45:46 +00:00
Michael Drake c4146fb8ff Fix absolute positioning when there's a float between the box and its containing block.
svn path=/trunk/netsurf/; revision=4101
2008-04-21 22:02:33 +00:00
Michael Drake 05e8696fc4 Improve handling of absolutely positioned table cells. Corrects positioning of "Weather" box contents on BBC homepage.
svn path=/trunk/netsurf/; revision=4100
2008-04-20 15:49:25 +00:00
John Mark Bell c5da2c906c Don't change URL bar contents until we've actually fetched the page.
svn path=/trunk/netsurf/; revision=4099
2008-04-19 11:13:56 +00:00
John Mark Bell dc85ddb0a8 Launch redirects to unsupported URLs in other applications.
svn path=/trunk/netsurf/; revision=4098
2008-04-19 11:07:42 +00:00
Michael Drake 60c90f89b8 Fix comment typos.
svn path=/trunk/netsurf/; revision=4097
2008-04-14 08:28:55 +00:00
Michael Drake a2616bbfe7 Fix makefile for save text. Remove redundant ifdef.
svn path=/trunk/netsurf/; revision=4096
2008-04-13 22:23:04 +00:00
Michael Drake 48431f9674 Remove text export build config option. Tidy up save_text code.
svn path=/trunk/netsurf/; revision=4095
2008-04-13 21:58:43 +00:00
Michael Drake 5c8406bf8b Rewrite text export to use box tree. Improves output formatting. Simplify selection saving.
svn path=/trunk/netsurf/; revision=4094
2008-04-13 18:21:22 +00:00
Michael Drake 78c22d4171 Tidy and update comments.
svn path=/trunk/netsurf/; revision=4093
2008-04-11 17:51:43 +00:00
Michael Drake 3bd3a811c2 Improve selection of text in floats.
svn path=/trunk/netsurf/; revision=4092
2008-04-11 15:52:56 +00:00
Michael Drake 84cd9a655f Improve click handling in text inputs.
svn path=/trunk/netsurf/; revision=4087
2008-04-08 12:40:05 +00:00
John Tytgat 90e061c6a9 Updated comments on RISC OS HOST determination issue.
svn path=/trunk/netsurf/; revision=4086
2008-04-07 23:13:06 +00:00
John Tytgat f3d968bfc0 Native RISC OS building: create sym file in the build directory instead of current directory.
svn path=/trunk/netsurf/; revision=4085
2008-04-07 19:13:11 +00:00
Rob Kendrick 59641def82 const fixes in plotters and history core
svn path=/trunk/netsurf/; revision=4083
2008-04-07 11:15:09 +00:00
Rob Kendrick 79acb8b08c Further fixes for unsigned int being used as an intptr
svn path=/trunk/netsurf/; revision=4082
2008-04-07 10:37:21 +00:00
Rob Kendrick 7614b26944 Fix assumption that int is the same width as a pointer
svn path=/trunk/netsurf/; revision=4081
2008-04-07 10:23:18 +00:00
Michael Drake 384327a279 Default size for textareas.
svn path=/trunk/netsurf/; revision=4080
2008-04-07 09:03:21 +00:00
Michael Drake 8b2a23081f Various text selection improvements:
+ Fix redraw bug where parts of old selections would get left behind
+ Enable selection of list marker boxes (bullet points and numbers)
+ Improve formatting of copied-to-clipboard or saved text selections
+ Select click anywhere outside current selection now clears current selection

svn path=/trunk/netsurf/; revision=4079
2008-04-07 09:00:21 +00:00
Michael Drake 8de0baae0b Improve formatting of copied/saved text from text selections in PREs. Improve formatting in other odd cases too.
svn path=/trunk/netsurf/; revision=4071
2008-04-02 18:23:42 +00:00
Adrian Lees 7b1c0bde45 I want a symbol list, thank you
svn path=/trunk/netsurf/; revision=4070
2008-04-02 01:15:22 +00:00
John Tytgat 0d39c69763 - riscos/gui.c(path_to_url): escape the characters which need to be escaped when converting the host path to file: URL.
- utils/{url.c,url.h}(url_escape):
  * added parameter 'toskip' to specify number of input characters which need to be skipped in the escape process. This avoids extra malloc buffer juggling.
  * added parameter 'escexceptions' to specify the characters which need to be excluded from the escape process.

Solves SF tracker ID 1910169.
Note that when discname in path contains '/' characters (case: "file:///Sunfish#192.168.0.50::/home/joty.$/jo.html") or there is no discname specified at all (case "file:///HostFS:$/jo.htm"), you 
need an UnixLib fix as in http://www.riscos.info/websvn/listing.php?repname=gccsdk&path=%2Ftrunk%2Fgcc4%2F&rev=3395&sc=1

svn path=/trunk/netsurf/; revision=4069
2008-04-02 00:43:51 +00:00
John Tytgat 4b7c105afc Remove useless private UnixLib include.
svn path=/trunk/netsurf/; revision=4068
2008-04-01 19:44:57 +00:00
Michael Drake d12357c9a3 Remove unused variable. Update copyright.
svn path=/trunk/netsurf/; revision=4067
2008-03-31 22:22:14 +00:00
Michael Drake 13b1c0d379 Suppress the box->space spaces after BRs in copied/saved text selections.
svn path=/trunk/netsurf/; revision=4066
2008-03-31 21:52:12 +00:00
John Mark Bell 421be3633e Fix crash when attempting to dump non HTML content (Dobos D. Calin)
svn path=/trunk/netsurf/; revision=4065
2008-03-31 19:10:19 +00:00
Michael Drake 62ca5e3e11 Tidy up.
svn path=/trunk/netsurf/; revision=4064
2008-03-31 18:59:23 +00:00
Michael Drake 5def4f5e0c Fix formatting of copied or saved text selections.
svn path=/trunk/netsurf/; revision=4063
2008-03-31 18:04:36 +00:00
Michael Drake 8ec3958b04 Ensure adjust drags before selection adjust selection start point.
svn path=/trunk/netsurf/; revision=4061
2008-03-30 00:06:16 +00:00
Michael Drake ba18c56123 Restructure and update.
svn path=/trunk/netsurf/; revision=4060
2008-03-29 23:26:37 +00:00