From 84ecebb4e9beaef3d046617c9c5ae3c1714a4aa8 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 2 Feb 2026 23:20:58 +0800 Subject: add utf8.bom --- xmake/core/base/utf8.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xmake/core/base/utf8.lua b/xmake/core/base/utf8.lua index 67b52e7ec..a35469849 100644 --- a/xmake/core/base/utf8.lua +++ b/xmake/core/base/utf8.lua @@ -37,6 +37,11 @@ local utf8 = utf8 or {} -- @interface utf8.byte(s [, i [, j]]) -- +-- the utf8 bom +if not utf8.bom then + utf8.bom = "\239\187\191" +end + -- the char pattern if not utf8.charpattern then utf8.charpattern = "[\0-\x7F\xC2-\xFD][\x80-\xBF]*" -- cgit v1.3.1