mirror of
https://github.com/golang/go
synced 2024-11-22 00:54:43 -07:00
- Make Coco/R-based parser work w/ UTF-8 encoded files even if there is
no (optional) UTF-8 marker present. SVN=113931
This commit is contained in:
parent
41d34e2451
commit
d79b17e60a
@ -9,9 +9,8 @@ package main
|
||||
func main() {
|
||||
[ ' ',
|
||||
'a',
|
||||
// need to fix Coco/R scanner to read Unicode.
|
||||
// 'ä',
|
||||
//'本',
|
||||
'ä',
|
||||
'本',
|
||||
'\a',
|
||||
'\b',
|
||||
'\f',
|
||||
|
@ -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
|
||||
|
@ -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\`
|
||||
|
Loading…
Reference in New Issue
Block a user