]> Kevux Git Server - fll/commit
Bugfix: Error handling should not exit for certain errors.
authorKevin Day <thekevinday@gmail.com>
Sat, 11 Dec 2021 03:57:44 +0000 (21:57 -0600)
committerKevin Day <thekevinday@gmail.com>
Sat, 11 Dec 2021 04:24:04 +0000 (22:24 -0600)
commitf5dcbcc9a2c18ae6bc16483866b017e686a0d5a2
tree17c16ae9a689473c58299f99e541da8f0d9098a2
parentdee837dc8e8fb84a00f90b0d87ff31d925cbe8c5
Bugfix: Error handling should not exit for certain errors.

When a process signal is being received, F_signal is being set with the error bit.
This should not have the error bit set.

Move the conditional logic inside the appropriate printing functions.
Add utf8_print_character_invalid() for printing an error character.

Invalid UTF-8 fragments should not result in an exit on error.
Instead, these should be handled by either appropriate printing or by setting the is valid property on exit.
level_3/utf8/c/private-print.c
level_3/utf8/c/private-print.h
level_3/utf8/c/private-utf8_binary.c
level_3/utf8/c/private-utf8_codepoint.c
level_3/utf8/c/utf8.c