Make wcrtomb() more readable by weeding out range errors up front,
authorschwarze <schwarze@openbsd.org>
Mon, 12 Oct 2015 17:50:51 +0000 (17:50 +0000)
committerschwarze <schwarze@openbsd.org>
Mon, 12 Oct 2015 17:50:51 +0000 (17:50 +0000)
commit962a275c4d0d417f0012859e08219a019f846522
treefde6620cc7bdf0fc0a6c0da9c9b4cfbe049f020c
parentdd3a02feb525a24745fed9d1fde279e902b5caef
Make wcrtomb() more readable by weeding out range errors up front,
doing ASCII handling once rather than twice, and using <= rather
than ((&~)==) obfuscation (which already caused a bug in the past).
No functional change.
Joint work with and OK stsp@ semarie@ bentley@
lib/libc/citrus/citrus_utf8.c