summaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-04-20 07:45:30 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-04-20 07:45:30 -0700
commit2db8b0497c7cc13b44210fb06b74d45fefccefc3 (patch)
tree224f5617e347fa39b371eb7716567187b34b8480 /time.c
parent901440d00b54e747cc68da70df3a0a1eaef258fc (diff)
downloadtxr-2db8b0497c7cc13b44210fb06b74d45fefccefc3.tar.gz
txr-2db8b0497c7cc13b44210fb06b74d45fefccefc3.tar.bz2
txr-2db8b0497c7cc13b44210fb06b74d45fefccefc3.zip
utf8: decode: reduce strictness of full unicode check.
* utf8.c (utf8_from_buf, utf8_deocde): On 16 bit wchar_t, we dont' have to throw on every value in the range 0xF0-0xFF. Only the values 0xF0 through 0xF4 are potential UTF-8 bytes; so we only need to error out on those. 0xF5 through 0xFF are invalid bytes, which we can map into the 0xDCNN range.
Diffstat (limited to 'time.c')
0 files changed, 0 insertions, 0 deletions