Codechange: remove all u8 prefix in favour of compile-time option (#11807)

This commit is contained in:
Patric Stout
2024-01-16 22:33:53 +01:00
committed by GitHub
parent 6550682b49
commit 6860a86d45
7 changed files with 693 additions and 686 deletions

View File

@@ -796,7 +796,7 @@ static void Xunzip(byte **bufp, size_t *sizep)
std::string_view sv_buf(buf, filesize);
/* Check for the byte-order-mark, and skip it if needed. */
if (StrStartsWith(sv_buf, u8"\ufeff")) sv_buf.remove_prefix(3);
if (StrStartsWith(sv_buf, "\ufeff")) sv_buf.remove_prefix(3);
/* Update the filename. */
this->filepath = textfile;