summaryrefslogtreecommitdiff
path: root/xmake/core/base/utf8.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/base/utf8.lua')
-rw-r--r--xmake/core/base/utf8.lua5
1 files changed, 5 insertions, 0 deletions
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]*"