From 1737957b341d62a8849ef9914d88fb5c61ab1277 Mon Sep 17 00:00:00 2001 From: Marc Bernard <59966492+mbtools@users.noreply.github.com> Date: Fri, 26 Aug 2022 02:19:24 -0400 Subject: [PATCH] Fix regression in non-Unicode systems (#5732) --- src/repo/zcl_abapgit_dot_abapgit.clas.abap | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/repo/zcl_abapgit_dot_abapgit.clas.abap b/src/repo/zcl_abapgit_dot_abapgit.clas.abap index 6ae906ecf..b44627593 100644 --- a/src/repo/zcl_abapgit_dot_abapgit.clas.abap +++ b/src/repo/zcl_abapgit_dot_abapgit.clas.abap @@ -280,7 +280,11 @@ CLASS zcl_abapgit_dot_abapgit IMPLEMENTATION. "unicode systems always add the byte order mark to the xml, while non-unicode does not "this code will always add the byte order mark if it is not in the xml - lv_mark = zcl_abapgit_convert=>xstring_to_string_utf8( cl_abap_char_utilities=>byte_order_mark_utf8 ). + TRY. + lv_mark = zcl_abapgit_convert=>xstring_to_string_utf8( cl_abap_char_utilities=>byte_order_mark_utf8 ). + CATCH zcx_abapgit_exception ##NO_HANDLER. +* In non-unicode systems, the byte order mark throws an error + ENDTRY. IF lv_xml(1) <> lv_mark. CONCATENATE lv_mark lv_xml INTO lv_xml. ENDIF.