Browse Source

added an UTF8-test

- this basic test checks if bcc/bmk is capable of working with UTF8-texts
Ronny Otto 11 years ago
parent
commit
bfe6376886
2 changed files with 11 additions and 0 deletions
  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 мөр байна