kbdfs/mklatin: allow >16 bit runes in /lib/keyboard

This commit is contained in:
Alex Musolino 2020-07-03 22:14:49 +09:30
parent 03852d9408
commit a3a4f5c3e3

View file

@ -173,12 +173,13 @@ readfile(char *fname)
r = strtol(line, nil, 16);
p = strchr(line, ' ');
if(r == 0 || p != line+4 || p[0] != ' ' || p[1] != ' ') {
if(r == 0 || p == 0) {
fprint(2, "%s:%d: cannot parse line\n", fname, lineno);
continue;
}
p = line+6;
while(*p == ' ')
p++;
/* 00AE Or rO ® registered trade mark sign */
for(inseq=1, seq=p; (uchar)*p < Runeself; p++) {
if(*p == '\0' || isspace(*p)) {