summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* The core code has always assumed a locale of "C".John Mark Bell2008-05-1313-17/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Remove unnecessary includesJohn Mark Bell2008-05-113-9/+0
| | | | svn path=/trunk/netsurf/; revision=4144
* Fix RO5 IconSpritesJohn Mark Bell2008-05-111-1/+1
| | | | svn path=/trunk/netsurf/; revision=4143
* Correct file typesJohn Mark Bell2008-05-102-0/+0
| | | | svn path=/trunk/netsurf/; revision=4142
* Fix IconSprites on RO6John Mark Bell2008-05-101-4/+4
| | | | svn path=/trunk/netsurf/; revision=4141
* Add NetSurf Scrap/Choices directory openers.Michael Drake2008-05-102-0/+2
| | | | svn path=/trunk/netsurf/; revision=4139
* Require C99 SCL in Run file. Provides a friendlier error message than ↵John Mark Bell2008-05-041-0/+6
| | | | | | "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
* Add html extensions to minimal MIME type hashJohn Mark Bell2008-04-281-0/+2
| | | | svn path=/trunk/netsurf/; revision=4110
* Accomodate text area scrollbars in fixed widths. Fix radio button / checkbox ↵Michael Drake2008-04-251-4/+9
| | | | | | issue. svn path=/trunk/netsurf/; revision=4108
* Change handling of form element widths / heights.Michael Drake2008-04-252-19/+62
| | | | svn path=/trunk/netsurf/; revision=4107
* Make floats that follow a cleared float heed the clear. Fixes position of ↵Michael Drake2008-04-232-4/+18
| | | | | | search form on BBC homepage. svn path=/trunk/netsurf/; revision=4104
* Maybe fix table layout problem caused by r4100.Michael Drake2008-04-231-0/+4
| | | | svn path=/trunk/netsurf/; revision=4103
* Fix absolute positioning when there's a float between the box and its ↵Michael Drake2008-04-211-1/+22
| | | | | | containing block. svn path=/trunk/netsurf/; revision=4101
* Improve handling of absolutely positioned table cells. Corrects positioning ↵Michael Drake2008-04-205-11/+38
| | | | | | of "Weather" box contents on BBC homepage. svn path=/trunk/netsurf/; revision=4100
* Don't change URL bar contents until we've actually fetched the page.John Mark Bell2008-04-191-2/+0
| | | | svn path=/trunk/netsurf/; revision=4099
* Launch redirects to unsupported URLs in other applications.John Mark Bell2008-04-197-22/+61
| | | | svn path=/trunk/netsurf/; revision=4098
* Fix comment typos.Michael Drake2008-04-141-4/+4
| | | | svn path=/trunk/netsurf/; revision=4097
* Fix makefile for save text. Remove redundant ifdef.Michael Drake2008-04-132-4/+4
| | | | svn path=/trunk/netsurf/; revision=4096
* Remove text export build config option. Tidy up save_text code.Michael Drake2008-04-133-8/+2
| | | | svn path=/trunk/netsurf/; revision=4095
* Rewrite text export to use box tree. Improves output formatting. Simplify ↵Michael Drake2008-04-134-164/+277
| | | | | | selection saving. svn path=/trunk/netsurf/; revision=4094
* Tidy and update comments.Michael Drake2008-04-111-26/+37
| | | | svn path=/trunk/netsurf/; revision=4093
* Improve selection of text in floats.Michael Drake2008-04-112-93/+175
| | | | svn path=/trunk/netsurf/; revision=4092
* Improve click handling in text inputs.Michael Drake2008-04-082-5/+7
| | | | svn path=/trunk/netsurf/; revision=4087
* Updated comments on RISC OS HOST determination issue.John Tytgat2008-04-071-3/+6
| | | | svn path=/trunk/netsurf/; revision=4086
* Native RISC OS building: create sym file in the build directory instead of ↵John Tytgat2008-04-071-3/+3
| | | | | | current directory. svn path=/trunk/netsurf/; revision=4085
* const fixes in plotters and history coreRob Kendrick2008-04-0710-16/+16
| | | | svn path=/trunk/netsurf/; revision=4083
* Further fixes for unsigned int being used as an intptrRob Kendrick2008-04-071-4/+4
| | | | svn path=/trunk/netsurf/; revision=4082
* Fix assumption that int is the same width as a pointerRob Kendrick2008-04-071-10/+11
| | | | svn path=/trunk/netsurf/; revision=4081
* Default size for textareas.Michael Drake2008-04-071-1/+1
| | | | svn path=/trunk/netsurf/; revision=4080
* Various text selection improvements:Michael Drake2008-04-073-39/+98
| | | | | | | | | + 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
* Improve formatting of copied/saved text from text selections in PREs. ↵Michael Drake2008-04-021-5/+16
| | | | | | Improve formatting in other odd cases too. svn path=/trunk/netsurf/; revision=4071
* I want a symbol list, thank youAdrian Lees2008-04-021-1/+1
| | | | svn path=/trunk/netsurf/; revision=4070
* - riscos/gui.c(path_to_url): escape the characters which need to be escaped ↵John Tytgat2008-04-024-31/+54
| | | | | | | | | | | | | | 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
* Remove useless private UnixLib include.John Tytgat2008-04-011-1/+0
| | | | svn path=/trunk/netsurf/; revision=4068
* Remove unused variable. Update copyright.Michael Drake2008-03-311-2/+1
| | | | svn path=/trunk/netsurf/; revision=4067
* Suppress the box->space spaces after BRs in copied/saved text selections.Michael Drake2008-03-311-1/+2
| | | | svn path=/trunk/netsurf/; revision=4066
* Fix crash when attempting to dump non HTML content (Dobos D. Calin)John Mark Bell2008-03-311-2/+9
| | | | svn path=/trunk/netsurf/; revision=4065
* Tidy up.Michael Drake2008-03-313-38/+50
| | | | svn path=/trunk/netsurf/; revision=4064
* Fix formatting of copied or saved text selections.Michael Drake2008-03-313-74/+180
| | | | svn path=/trunk/netsurf/; revision=4063
* Ensure adjust drags before selection adjust selection start point.Michael Drake2008-03-301-1/+1
| | | | svn path=/trunk/netsurf/; revision=4061
* Restructure and update.Michael Drake2008-03-291-25/+46
| | | | svn path=/trunk/netsurf/; revision=4060
* Selection adjustments always change the selection end when click is inside ↵Michael Drake2008-03-292-7/+2
| | | | | | the existing selection. svn path=/trunk/netsurf/; revision=4059
* Only record that the HTML alignment was set by a table element if it is ↵Michael Drake2008-03-291-6/+7
| | | | | | actually set. svn path=/trunk/netsurf/; revision=4058
* Add support for more GTK accelerators: num pad equivalents, as well as ctrl= ↵James Shaw2008-03-291-0/+4
| | | | | | for zoom in svn path=/trunk/netsurf/; revision=4057
* Fix build with WITH_NSSPRITE undefinedJohn Mark Bell2008-03-291-1/+1
| | | | svn path=/trunk/netsurf/; revision=4056
* Pedantic typo fixJohn Mark Bell2008-03-291-2/+2
| | | | svn path=/trunk/netsurf/; revision=4055
* Fix instructions on disabling librosprite. Move #include for when James Shaw2008-03-292-4/+8
| | | | | | librosprite isn't installed svn path=/trunk/netsurf/; revision=4054
* Fix typoJames Shaw2008-03-291-2/+2
| | | | svn path=/trunk/netsurf/; revision=4053
* Update docs with instructions for building or disabling librosprite.James Shaw2008-03-291-0/+16
| | | | svn path=/trunk/netsurf/; revision=4052
* Implement sprite support for GTK using librospriteJames Shaw2008-03-299-7/+192
| | | | svn path=/trunk/netsurf/; revision=4051