瀏覽代碼

added an UTF8-test

- this basic test checks if bcc/bmk is capable of working with UTF8-texts
Ronny Otto 11 年之前
父節點
當前提交
bfe6376886
共有 2 個文件被更改,包括 11 次插入0 次删除
  1. 10 0
      tests/framework/streams/utf8_01.bmx
  2. 1 0
      tests/framework/streams/utf8_01.res

+ 10 - 0
tests/framework/streams/utf8_01.bmx

@@ -0,0 +1,10 @@
+SuperStrict
+'HINT 1: this file must be saved with "Unicode BOM" to get recognized
+'        correctly by bmk/bcc
+'        So enable it in your editor of choice
+
+'HINT 2: this file outputs the wrong characters when opened in MaxIDE
+'        and then compiled clicking a button.
+'        So compile it with a console us bmk -o utf8_01 utf8_01.bmx
+
+print "Сайн байна уу би UTF8 мөр байна"

+ 1 - 0
tests/framework/streams/utf8_01.res

@@ -0,0 +1 @@
+Сайн байна уу би UTF8 мөр байна