]> Kevux Git Server - fll/commitdiff
Update: Handle error printing of F_complete_not_utf_start.
authorKevin Day <Kevin@kevux.org>
Sun, 31 May 2026 14:59:30 +0000 (09:59 -0500)
committerKevin Day <Kevin@kevux.org>
Sun, 31 May 2026 14:59:30 +0000 (09:59 -0500)
level_2/fll_error/c/error/string.c
level_2/fll_error/c/error/string.h
level_2/fll_error/c/private-error.c

index 6b43b369171c470d46f1b9e247423ee2e5018bd0..2f8b4be64d18d2ef865c1d0a44edb72c3310df65 100644 (file)
@@ -129,6 +129,7 @@ extern "C" {
     "%[%QInvalid Connection",
     "%[%QSocket pipe is closed",
     "%[%Q%]%['",
+    " at the start point of string",
   };
 #endif // _di_fll_error_s_a_
 
index 307698450f513d924992aeaaf120bdf5c9a13d77..06eb9e57c59118d22e622beeb01a4005c4f6b5e9 100644 (file)
@@ -160,6 +160,7 @@ extern "C" {
     fll_error_s_120_invalid_connection_e,
     fll_error_s_121_socket_pipe_closed_e,
     fll_error_s_122_Q_then_quote_single_e,
+    fll_error_s_123_start_of_str_e,
   }; // enum
 #endif // _di_fll_error_s_e_
 
index 4038b3b8a4ae674f1fafc2a0dff93484d9da3d8a..3e02865dcb77c2d9fb23bd2f5b7cd7ced9cda925 100644 (file)
@@ -294,7 +294,7 @@ extern "C" {
       return private_fll_error_print_simple(print, debug, macro_fll_error_s(095_invalid_value));
     }
 
-    if (status == F_complete_not_utf || status == F_complete_not_utf_eos || status == F_complete_not_utf_stop) {
+    if (status == F_complete_not_utf || status == F_complete_not_utf_eos || status == F_complete_not_utf_start || status == F_complete_not_utf_stop) {
       if (print->verbosity != f_console_verbosity_quiet_e) {
         flockfile(print->to.stream);
 
@@ -303,6 +303,9 @@ extern "C" {
         if (status == F_complete_not_utf_eos) {
           fl_print_format(macro_fll_error_s(012_end_of_str), print->to);
         }
+        else if (status == F_complete_not_utf_start) {
+          fl_print_format(macro_fll_error_s(123_start_of_str), print->to);
+        }
         else if (status == F_complete_not_utf_stop) {
           fl_print_format(macro_fll_error_s(013_stop_of_str), print->to);
         }