* src/sfntfont.c: Include c-ctype.h, not ctype.h.
(sfnt_parse_style): Upcase just initial ASCII letters;
that’s good enough here.
(cherry picked from commit
58a44b6ac317c9a17bcdd208e4ec33ff9772429e)
#include <config.h>
#include <fcntl.h>
-#include <ctype.h>
+#include <c-ctype.h>
#include "lisp.h"
}
/* This token is extraneous or was not recognized. Capitalize
- the first letter and set it as the adstyle. */
+ the first letter if it's ASCII lowercase, then set the token as
+ the adstyle. */
if (strlen (single))
{
- if (islower (single[0]))
- single[0] = toupper (single[0]);
+ single[0] = c_toupper (single[0]);
if (NILP (desc->adstyle))
desc->adstyle = build_string (single);