From: Kevin Day Date: Sat, 11 Dec 2021 04:52:27 +0000 (-0600) Subject: Update: Keep original value when printing error while converting from Unicode codepoi... X-Git-Tag: 0.5.7~51 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=e4c2e456a3ab78ebb4ae3a7d35927eaf5bd15179;p=fll Update: Keep original value when printing error while converting from Unicode codepoint string. --- diff --git a/level_3/utf8/c/private-print.c b/level_3/utf8/c/private-print.c index 42d6da5..8e87d65 100644 --- a/level_3/utf8/c/private-print.c +++ b/level_3/utf8/c/private-print.c @@ -18,7 +18,10 @@ extern "C" { if (!character.used) return; - if (data->mode & utf8_mode_to_binary_d) { + if (data->mode & utf8_mode_from_codepoint_d) { + fl_print_format("%s%[%Q%]%s", data->file.stream, data->prepend, set, character, set, data->append); + } + else if (data->mode & utf8_mode_to_binary_d) { fl_print_format("%s%[%r%]%s", data->file.stream, data->prepend, set, character, set, data->append); } else {