ref: a3a4f5c3e3be563642aa10302b7aa0d1dba4ad17
parent: 03852d94083a33e0b10762c2225f2015f23c49d5
author: Alex Musolino <[email protected]>
date: Fri Jul 3 18:14:49 EDT 2020
kbdfs/mklatin: allow >16 bit runes in /lib/keyboard
--- a/sys/src/cmd/aux/kbdfs/mklatin.c
+++ b/sys/src/cmd/aux/kbdfs/mklatin.c
@@ -173,12 +173,13 @@
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)) {