]> Cypherpunks repositories - gostls13.git/commitdiff
- Make Coco/R-based parser work w/ UTF-8 encoded files even if there is
authorRobert Griesemer <gri@golang.org>
Wed, 26 Mar 2008 23:12:43 +0000 (16:12 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 26 Mar 2008 23:12:43 +0000 (16:12 -0700)
  no (optional) UTF-8 marker present.

SVN=113931

test/char_lit.go
test/runtests.sh
test/string_lit.go

index 66ffec20854023b90a349c78f9bf4c8d4e424636..6af96be9ca8e8c0cbe8e9a413874053804f21d5e 100644 (file)
@@ -9,9 +9,8 @@ package main
 func main() {
   [ ' ',
     'a',
-    // need to fix Coco/R scanner to read Unicode.
-    // 'ä',
-    //'本',
+    'ä',
+    '本',
     '\a',
     '\b',
     '\f',
index 48f512a4f455b1d8076744d07c741656d7ec1ba4..9fb0f0ab13f0327fb138f557e6ada7f1fc84f4c7 100755 (executable)
@@ -3,6 +3,7 @@
 # license that can be found in the LICENSE file.
 
 #!/bin/bash
+GO=$1
 for f in *.go; do
-  go $f
+  $GO $f
 done
index 568e7a511d85b97a1acbed1ae4118f7bf8c8ad94..87f7dae3acce0362f1ee458483ede69f548d0a87 100644 (file)
@@ -11,8 +11,8 @@ func main() {
     " ",
     "'`",
     "a",
-    //"ä",
-    //"本",
+    "ä",
+    "本",
     "\a\b\f\n\r\t\v\\\'\"",
     "\000\123\x00\xca\xFE\u0123\ubabe\U0123ABCD\Ucafebabe",
     
@@ -20,8 +20,8 @@ func main() {
     ` `,
     `'"`,
     `a`,
-    //`ä`,
-    //`本`,
+    `ä`,
+    `本`,
     `\a\b\f\n\r\t\v\\\'\"`,
     `\000\123\x00\xca\xFE\u0123\ubabe\U0123ABCD\Ucafebabe`,
     `\x\u\U\`