summaryrefslogtreecommitdiffstats
path: root/parser.l
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2012-02-05 07:56:38 +0100
committerKaz Kylheku <kaz@kylheku.com>2012-02-05 07:56:38 +0100
commit4c6802f7284e17b7cbc1f178f90775182d379be6 (patch)
tree0023ac62d824c12e3b6508c9665e27dd4af28ea4 /parser.l
parent6949749e00019594d17a2dd7788dadd1663aff64 (diff)
downloadtxr-4c6802f7284e17b7cbc1f178f90775182d379be6.tar.gz
txr-4c6802f7284e17b7cbc1f178f90775182d379be6.tar.bz2
txr-4c6802f7284e17b7cbc1f178f90775182d379be6.zip
* utf8.c (utf8_from_uc, utf8_decode): Some cascaded if tests converted
to a switch on the upper nybble value. This also fixes an unfortunate bug. The test for the two byte case was written as ch >= 0xc2 && ch <= 0xE0. That should have been ch < 0xE0. Versions of TXR up to 55 have been incorrectly decoding some UTF-8.
Diffstat (limited to 'parser.l')
0 files changed, 0 insertions, 0 deletions