aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--test/examples/x.lua3
-rw-r--r--test/examples/x.lua.styled3
-rw-r--r--test/lexTests.py1
3 files changed, 5 insertions, 2 deletions
diff --git a/test/examples/x.lua b/test/examples/x.lua
index b7879619f..cfa3537b5 100644
--- a/test/examples/x.lua
+++ b/test/examples/x.lua
@@ -1,6 +1,7 @@
---[[ Block
+--[[ coding:UTF-8
comment ]]
function first()
+::開::
-- Comment
func(SCI_ANNOTATIONSETTEXT, 'a', 0, "LINE1")
end
diff --git a/test/examples/x.lua.styled b/test/examples/x.lua.styled
index d693279ff..0c8f76fa4 100644
--- a/test/examples/x.lua.styled
+++ b/test/examples/x.lua.styled
@@ -1,6 +1,7 @@
-{1}--[[ Block
+{1}--[[ coding:UTF-8
comment ]]{0}
{5}function{0} {11}first{10}(){0}
+{20}::開::{0}
{2}-- Comment
{0} {11}func{10}({11}SCI_ANNOTATIONSETTEXT{10},{0} {7}'a'{10},{0} {4}0{10},{0} {6}"LINE1"{10}){0}
{5}end{0}
diff --git a/test/lexTests.py b/test/lexTests.py
index 3c5ccc147..5c14bafc6 100644
--- a/test/lexTests.py
+++ b/test/lexTests.py
@@ -39,6 +39,7 @@ class TestLexers(unittest.TestCase):
def LexExample(self, name, lexerName, keywords=None):
if keywords is None:
keywords = []
+ self.ed.SetCodePage(65001)
self.ed.LexerLanguage = lexerName
bits = self.ed.StyleBitsNeeded
mask = 2 << bits - 1