aboutsummaryrefslogtreecommitdiff
path: root/lib/yaccpars
diff options
context:
space:
mode:
authorMichael Teichgräber <mt4swm@googlemail.com>2010-06-28 14:43:28 -0700
committerRuss Cox <rsc@swtch.com>2010-06-28 14:43:28 -0700
commitc006e984192aa8bcb755bdd25e111bb37b5db16b (patch)
treef2866a3fa8d70ad6ae547741b78f7224137dbf83 /lib/yaccpars
parent25989d9ecabaf82acbf72f5c8fbf1c369a6b98ae (diff)
downloadplan9port-c006e984192aa8bcb755bdd25e111bb37b5db16b.tar.gz
plan9port-c006e984192aa8bcb755bdd25e111bb37b5db16b.tar.bz2
plan9port-c006e984192aa8bcb755bdd25e111bb37b5db16b.zip
This patch fixes unicode, unicode-be and unicode-le
input, and unicode output, which have been broken due to the change of the size of Rune from two bytes to four bytes. (Unicode-le and unicode-be output have not been affected, since they work different, and produce correct output as long as sizeof(Rune) >= 2.) In all of the affected functions an extra array of N elements of type u16int is used to temporarily store the 16-bit unicode data. As this increases stack usage, perhaps a different, slightly more complicated solution might be preferred, where only a single `Rune buf[N]' is used for both temporary storage and the result. R=rsc CC=codebot http://codereview.appspot.com/1574041
Diffstat (limited to 'lib/yaccpars')
0 files changed, 0 insertions, 0 deletions