Skip to content
Browse files

fix utf-16le

  • Loading branch information...
1 parent 5b59e33 commit 0f7ed750d0f25baa393a42b60dd28de5086d9cf3 @mattn committed Feb 25, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 jvgrep.go
View
5 jvgrep.go
@@ -25,7 +25,8 @@ var encodings = []string{
"euc-jp",
"eucjp-ms",
"cp932",
- "utf-16", // utf-16 should be at last
+ "utf-16",
+ "utf-16le",
"",
}
@@ -96,7 +97,7 @@ func Grep(arg *GrepArg) {
f, func(r rune) bool {
return r > 0 && r < 0x9
}) != -1 {
- fencs = []string{""}
+ fencs = []string{"utf-16le"}
}
for _, enc := range fencs {

0 comments on commit 0f7ed75

Please sign in to comment.
Something went wrong with that request. Please try again.