diff options
Diffstat (limited to 'render/box_construct.c')
-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; |