@@ -932,6 +932,9 @@ ConversionResult ConvertUTF8toUTF32 (
932
932
REBSER * dst ;
933
933
REBINT size ;
934
934
935
+ REBFLG ccr = FALSE; // in original R3-alpha if was TRUE
936
+ //@@ https://github.com/rebol/rebol-issues/issues/2336
937
+
935
938
if (utf == -1 ) {
936
939
utf = What_UTF (bp , len );
937
940
if (utf ) {
@@ -942,13 +945,13 @@ ConversionResult ConvertUTF8toUTF32 (
942
945
}
943
946
944
947
if (utf == 0 || utf == 8 ) {
945
- size = Decode_UTF8 ((REBUNI * )Reset_Buffer (ser , len ), bp , len , TRUE );
948
+ size = Decode_UTF8 ((REBUNI * )Reset_Buffer (ser , len ), bp , len , ccr );
946
949
}
947
950
else if (utf == -16 || utf == 16 ) {
948
- size = Decode_UTF16 ((REBUNI * )Reset_Buffer (ser , len /2 + 1 ), bp , len , utf < 0 , TRUE );
951
+ size = Decode_UTF16 ((REBUNI * )Reset_Buffer (ser , len /2 + 1 ), bp , len , utf < 0 , ccr );
949
952
}
950
953
else if (utf == -32 || utf == 32 ) {
951
- size = Decode_UTF32 ((REBUNI * )Reset_Buffer (ser , len /4 + 1 ), bp , len , utf < 0 , TRUE );
954
+ size = Decode_UTF32 ((REBUNI * )Reset_Buffer (ser , len /4 + 1 ), bp , len , utf < 0 , ccr );
952
955
}
953
956
954
957
if (size < 0 ) {
0 commit comments