From 4dc0ba1d4af928cf23770d86c4eb4434e2faea4e Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 14 May 2022 08:06:40 -0500 Subject: [PATCH] Cleanup: Add U+000A Unicode codepoint in error message. --- level_3/fss_basic_list_write/c/private-write.c | 4 +++- level_3/fss_basic_write/c/private-write.c | 4 +++- level_3/fss_embedded_list_write/c/private-write.c | 4 +++- level_3/fss_extended_list_write/c/private-write.c | 4 +++- level_3/fss_extended_write/c/private-write.c | 4 +++- level_3/fss_payload_write/c/private-write.c | 4 +++- 6 files changed, 18 insertions(+), 6 deletions(-) diff --git a/level_3/fss_basic_list_write/c/private-write.c b/level_3/fss_basic_list_write/c/private-write.c index 5c75b4e..472d756 100644 --- a/level_3/fss_basic_list_write/c/private-write.c +++ b/level_3/fss_basic_list_write/c/private-write.c @@ -38,7 +38,9 @@ extern "C" { fl_print_format("%r%[%QThis standard does not support end of line character '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); fl_print_format("%[\\n%]", main->error.to.stream, main->error.notable, main->error.notable); - fl_print_format("%[' in objects.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%[' (%]", main->error.to.stream, main->error.context, main->error.context); + fl_print_format("%[U+000A%]", main->error.to.stream, main->error.notable, main->error.notable); + fl_print_format("%[) in objects.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); funlockfile(main->error.to.stream); } diff --git a/level_3/fss_basic_write/c/private-write.c b/level_3/fss_basic_write/c/private-write.c index 3747900..91e9e8a 100644 --- a/level_3/fss_basic_write/c/private-write.c +++ b/level_3/fss_basic_write/c/private-write.c @@ -55,7 +55,9 @@ extern "C" { fl_print_format("%r%[%QThis standard does not support end of line character '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); fl_print_format("%[\\n%]", main->error.to.stream, main->error.notable, main->error.notable); - fl_print_format("%[' in objects.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%[' (%]", main->error.to.stream, main->error.context, main->error.context); + fl_print_format("%[U+000A%]", main->error.to.stream, main->error.notable, main->error.notable); + fl_print_format("%[) in objects.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); funlockfile(main->error.to.stream); } diff --git a/level_3/fss_embedded_list_write/c/private-write.c b/level_3/fss_embedded_list_write/c/private-write.c index 8ec95b9..f54c836 100644 --- a/level_3/fss_embedded_list_write/c/private-write.c +++ b/level_3/fss_embedded_list_write/c/private-write.c @@ -38,7 +38,9 @@ extern "C" { fl_print_format("%r%[%QThis standard does not support end of line character '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); fl_print_format("%[\\n%]", main->error.to.stream, main->error.notable, main->error.notable); - fl_print_format("%[' in objects.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%[' (%]", main->error.to.stream, main->error.context, main->error.context); + fl_print_format("%[U+000A%]", main->error.to.stream, main->error.notable, main->error.notable); + fl_print_format("%[) in objects.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); funlockfile(main->error.to.stream); } diff --git a/level_3/fss_extended_list_write/c/private-write.c b/level_3/fss_extended_list_write/c/private-write.c index 15457f5..151e162 100644 --- a/level_3/fss_extended_list_write/c/private-write.c +++ b/level_3/fss_extended_list_write/c/private-write.c @@ -38,7 +38,9 @@ extern "C" { fl_print_format("%r%[%QThis standard does not support end of line character '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); fl_print_format("%[\\n%]", main->error.to.stream, main->error.notable, main->error.notable); - fl_print_format("%[' in objects.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%[' (%]", main->error.to.stream, main->error.context, main->error.context); + fl_print_format("%[U+000A%]", main->error.to.stream, main->error.notable, main->error.notable); + fl_print_format("%[) in objects.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); funlockfile(main->error.to.stream); } diff --git a/level_3/fss_extended_write/c/private-write.c b/level_3/fss_extended_write/c/private-write.c index bc12f22..aa914a8 100644 --- a/level_3/fss_extended_write/c/private-write.c +++ b/level_3/fss_extended_write/c/private-write.c @@ -55,7 +55,9 @@ extern "C" { fl_print_format("%r%[%QThis standard does not support end of line character '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); fl_print_format("%[\\n%]", main->error.to.stream, main->error.notable, main->error.notable); - fl_print_format("%[' in objects.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%[' (%]", main->error.to.stream, main->error.context, main->error.context); + fl_print_format("%[U+000A%]", main->error.to.stream, main->error.notable, main->error.notable); + fl_print_format("%[) in objects.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); funlockfile(main->error.to.stream); } diff --git a/level_3/fss_payload_write/c/private-write.c b/level_3/fss_payload_write/c/private-write.c index c37a014..dc41dcc 100644 --- a/level_3/fss_payload_write/c/private-write.c +++ b/level_3/fss_payload_write/c/private-write.c @@ -38,7 +38,9 @@ extern "C" { fl_print_format("%r%[%QThis standard does not support end of line character '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); fl_print_format("%[\\n%]", main->error.to.stream, main->error.notable, main->error.notable); - fl_print_format("%[' in objects.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%[' (%]", main->error.to.stream, main->error.context, main->error.context); + fl_print_format("%[U+000A%]", main->error.to.stream, main->error.notable, main->error.notable); + fl_print_format("%[) in objects.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); funlockfile(main->error.to.stream); } -- 1.8.3.1