diff options
author | Vincent Sanders <vince@kyllikki.org> | 2016-09-29 22:37:10 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2016-09-29 22:37:10 +0100 |
commit | a2396edde4f9746cfeb416ece9e20916de3216a4 (patch) | |
tree | 40a35e448d014e3ab4a4f36bd7a41749145ea0d7 /render | |
parent | 0dcfc2fc5dbc7b65cb0234dfbf340a22bd625638 (diff) | |
download | netsurf-a2396edde4f9746cfeb416ece9e20916de3216a4.tar.gz netsurf-a2396edde4f9746cfeb416ece9e20916de3216a4.tar.bz2 |
complete transition to locale independant core operation
The netsurf core no longer uses any locale dependant operations
excepting the mall number or cases where such operations are
explicitly wanted.
the netsurf_init now calls setlocale with the empty string and lets
the c library setup as per its specific implementation.
any core functionality that specificaly processes ascii text must use
the utils/ascii.h header to do so.
Diffstat (limited to 'render')
-rw-r--r-- | render/box_construct.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/render/box_construct.c b/render/box_construct.c index f6f18ab32..4b54a3075 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -35,7 +35,6 @@ #include "utils/config.h" #include "utils/nsoption.h" #include "utils/corestrings.h" -#include "utils/locale.h" #include "utils/log.h" #include "utils/messages.h" #include "utils/talloc.h" @@ -1386,20 +1385,20 @@ void box_text_transform(char *s, unsigned int len, enum css_text_transform_e tt) case CSS_TEXT_TRANSFORM_UPPERCASE: for (i = 0; i < len; ++i) if ((unsigned char) s[i] < 0x80) - s[i] = ls_toupper(s[i]); + s[i] = toupper(s[i]); break; case CSS_TEXT_TRANSFORM_LOWERCASE: for (i = 0; i < len; ++i) if ((unsigned char) s[i] < 0x80) - s[i] = ls_tolower(s[i]); + s[i] = tolower(s[i]); break; case CSS_TEXT_TRANSFORM_CAPITALIZE: if ((unsigned char) s[0] < 0x80) - s[0] = ls_toupper(s[0]); + s[0] = toupper(s[0]); for (i = 1; i < len; ++i) if ((unsigned char) s[i] < 0x80 && - ls_isspace(s[i - 1])) - s[i] = ls_toupper(s[i]); + isspace(s[i - 1])) + s[i] = toupper(s[i]); break; default: break; |