bugfix for extended chars
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8642 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
dd48c6dc23
commit
1eb6e72fdc
@ -285,7 +285,7 @@ Keymap::ComputeChars(const char *buffer, struct re_registers ®s, int i, int &
|
|||||||
} else if (sscanf(buffer + regs.start[i], "0x%s", hexChars) > 0) {
|
} else if (sscanf(buffer + regs.start[i], "0x%s", hexChars) > 0) {
|
||||||
length = strlen(hexChars) / 2;
|
length = strlen(hexChars) / 2;
|
||||||
for (uint32 j=0; j<length; j++)
|
for (uint32 j=0; j<length; j++)
|
||||||
sscanf(hexChars + 2*j, "%02x", (unsigned short *)current + j);
|
sscanf(hexChars + 2*j, "%02x", (uint8*)current + j);
|
||||||
}
|
}
|
||||||
fChars[offset] = length;
|
fChars[offset] = length;
|
||||||
offset += length + 1;
|
offset += length + 1;
|
||||||
|
@ -55,7 +55,6 @@ int main(int argc, char **argv)
|
|||||||
} else if (operation == 'l') {
|
} else if (operation == 'l') {
|
||||||
Keymap keymap;
|
Keymap keymap;
|
||||||
keymap.LoadSource(stdin);
|
keymap.LoadSource(stdin);
|
||||||
|
|
||||||
keymap.SaveAsCurrent();
|
keymap.SaveAsCurrent();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user