Browse Source

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

Enable R470, when newcompat LT is selected.
pre-master-46
Holger Vogt 5 years ago
parent
commit
df5e7e36f6
  1. 3
      src/frontend/inpcom.c

3
src/frontend/inpcom.c

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

Loading…
Cancel
Save