diff options
Diffstat (limited to 'render')
-rw-r--r-- | render/box_construct.c | 11 | ||||
-rw-r--r-- | render/layout.c | 1 |
2 files changed, 6 insertions, 6 deletions
diff --git a/render/box_construct.c b/render/box_construct.c index b05dcc019..9c001cb0d 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -43,6 +43,7 @@ #include "render/form.h" #include "render/html.h" #include "desktop/gui.h" +#include "utils/locale.h" //#define NDEBUG #include "utils/log.h" #include "utils/messages.h" @@ -1362,20 +1363,20 @@ void box_text_transform(char *s, unsigned int len, case CSS_TEXT_TRANSFORM_UPPERCASE: for (i = 0; i < len; ++i) if ((unsigned char) s[i] < 0x80) - s[i] = toupper(s[i]); + s[i] = ls_toupper(s[i]); break; case CSS_TEXT_TRANSFORM_LOWERCASE: for (i = 0; i < len; ++i) if ((unsigned char) s[i] < 0x80) - s[i] = tolower(s[i]); + s[i] = ls_tolower(s[i]); break; case CSS_TEXT_TRANSFORM_CAPITALIZE: if ((unsigned char) s[0] < 0x80) - s[0] = toupper(s[0]); + s[0] = ls_toupper(s[0]); for (i = 1; i < len; ++i) if ((unsigned char) s[i] < 0x80 && - isspace(s[i - 1])) - s[i] = toupper(s[i]); + ls_isspace(s[i - 1])) + s[i] = ls_toupper(s[i]); break; default: break; diff --git a/render/layout.c b/render/layout.c index e93c41a5d..7a8dbd53a 100644 --- a/render/layout.c +++ b/render/layout.c @@ -33,7 +33,6 @@ #define _GNU_SOURCE /* for strndup */ #include <assert.h> -#include <ctype.h> #include <limits.h> #include <stdbool.h> #include <stdio.h> |