When checking for µ, truncated the line, when shifted.

Enable R470, when newcompat LT is selected.
This commit is contained in:
Holger Vogt 2021-09-25 23:43:36 +02:00
parent 3dcc36c1c3
commit df5e7e36f6
1 changed files with 3 additions and 0 deletions

View File

@ -2431,6 +2431,8 @@ static int is_a_modelname(const char *s)
/*token contains a '=' */
if (strchr(s, '='))
return FALSE;
if (newcompat.lt && *s == 'r')
s++;
/* first character of model name is character from alphabet */
if (isalpha_c(s[0]))
return TRUE;
@ -9876,6 +9878,7 @@ utf8_check(unsigned char *s)
while (*z) {
*y++ = *z++;
}
*y = '\0';
s++;
}
else if ((s[0] & 0xe0) == 0xc0) {