shithub: riscv

Download patch

ref: c86561f6257fd865590caacb3a4ad709c848eb68
parent: 4d0343c9d2db502c162f5050385ba5528aef2a47
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Mar 19 07:44:26 EDT 2015

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