Start adding UTF-8 support: first step
Add an internal function that guesses the encoding of a string:
ASCII, UTF-8, or CP437.
Add a test program and 3 test cases, one for each encoding.
--HG--
branch : HEAD
diff --git a/regress/encoding-ascii.test b/regress/encoding-ascii.test
new file mode 100644
index 0000000..5d086f8
--- /dev/null
+++ b/regress/encoding-ascii.test
@@ -0,0 +1,5 @@
+# recognize ASCII
+program encoding
+return 0
+args ABC%^&&*!@#_.as./-
+stdout guessing ABC%^&&*!@#_.as./-: ASCII