]> Kevux Git Server - fll/commitdiff
Update: Keep original value when printing error while converting from Unicode codepoi...
authorKevin Day <thekevinday@gmail.com>
Sat, 11 Dec 2021 04:52:27 +0000 (22:52 -0600)
committerKevin Day <thekevinday@gmail.com>
Sat, 11 Dec 2021 04:52:27 +0000 (22:52 -0600)
level_3/utf8/c/private-print.c

index 42d6da524ee402c9a6296701c2baf53a19993ad4..8e87d65005328204f2c0ad077a3305eeaa92f8a6 100644 (file)
@@ -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 {