plan9fox/sys/src/cmd/db
cinap_lenrek c86561f625 db: fix unicode support (thanks giacomo)
from the unicode-db patch readme:

command() receives a char* that is assigned to lp, which is a Rune*,
and lp is incremented later in readchar(), so each read consumed 4 bytes.
The only time command() is called is in runpcs() with bkpt->comm,
which is a char* built in subpcs through a char*, so the string stored in
bkpt->comm was not a Rune string. A way to test the bug is:

db program
main:b argv/X
:r
2015-03-19 11:44:26 +01:00
..
command.c db: fix unicode support (thanks giacomo) 2015-03-19 11:44:26 +01:00
defs.h db: fix unicode support (thanks giacomo) 2015-03-19 11:44:26 +01:00
expr.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
fns.h db: fix unicode support (thanks giacomo) 2015-03-19 11:44:26 +01:00
format.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
input.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
main.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
mkfile Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
output.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
pcs.c db: fix unicode support (thanks giacomo) 2015-03-19 11:44:26 +01:00
print.c db: fix unicode support (thanks giacomo) 2015-03-19 11:44:26 +01:00
regs.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
runpcs.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
setup.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
trcrun.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00