summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-09-12 22:50:46 +0100
committerVincent Sanders <vince@kyllikki.org>2016-09-12 22:50:46 +0100
commitfa5e6fcdf90907e238ea74edf4ffdba7656fb163 (patch)
tree10199932d633b9ea8edd176fbd91366a072eea36
parentca12878c2f0c1617a1b86a0c54b3a94b88c1caa6 (diff)
downloadnetsurf-fa5e6fcdf90907e238ea74edf4ffdba7656fb163.tar.gz
netsurf-fa5e6fcdf90907e238ea74edf4ffdba7656fb163.tar.bz2
make html content line parsing use no locale dependant ascii processing
-rw-r--r--render/html.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/render/html.c b/render/html.c
index 96251eabb..5a2aa4f98 100644
--- a/render/html.c
+++ b/render/html.c
@@ -23,7 +23,6 @@
*/
#include <assert.h>
-#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <strings.h>
@@ -40,6 +39,7 @@
#include "utils/utf8.h"
#include "utils/nsoption.h"
#include "utils/string.h"
+#include "utils/ascii.h"
#include "netsurf/content.h"
#include "netsurf/browser_window.h"
#include "netsurf/utf8.h"
@@ -394,7 +394,7 @@ static nserror html_meta_refresh_process_element(html_content *c, dom_node *n)
url = dom_string_data(content);
/* *LWS */
- while (url < end && isspace(*url)) {
+ while (url < end && ascii_is_space(*url)) {
url++;
}
@@ -422,7 +422,7 @@ static nserror html_meta_refresh_process_element(html_content *c, dom_node *n)
}
/* *LWS */
- while (url < end && isspace(*url)) {
+ while (url < end && ascii_is_space(*url)) {
url++;
}
@@ -431,7 +431,7 @@ static nserror html_meta_refresh_process_element(html_content *c, dom_node *n)
url++;
/* *LWS */
- while (url < end && isspace(*url)) {
+ while (url < end && ascii_is_space(*url)) {
url++;
}
@@ -463,7 +463,7 @@ static nserror html_meta_refresh_process_element(html_content *c, dom_node *n)
}
/* *LWS */
- while (url < end && isspace(*url)) {
+ while (url < end && ascii_is_space(*url)) {
url++;
}
@@ -483,7 +483,7 @@ static nserror html_meta_refresh_process_element(html_content *c, dom_node *n)
}
/* *LWS */
- while (url < end && isspace(*url)) {
+ while (url < end && ascii_is_space(*url)) {
url++;
}
@@ -502,7 +502,7 @@ static nserror html_meta_refresh_process_element(html_content *c, dom_node *n)
url++;
} else {
/* url-nq */
- while (url < end && !isspace(*url))
+ while (url < end && !ascii_is_space(*url))
url++;
}