kbdfs/mklatin: allow >16 bit runes in /lib/keyboard
This commit is contained in:
parent
03852d9408
commit
a3a4f5c3e3
1 changed files with 3 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue