ProcessWord support UTF-8

modified PorcessWord to working normally for UTF-8 strings and added test cases

Signed-off-by: Daehyeok Mun <daehyeok@gmail.com>
Upstream-commit: bb79b7eb9e1db83fd80121b088aa2e5a4c084ace
Component: engine
This commit is contained in:
Daehyeok Mun
2015-10-18 21:55:53 -06:00
parent b1184809c8
commit 954f6f9002
3 changed files with 99 additions and 51 deletions

View File

@ -15,7 +15,7 @@ func TestShellParser(t *testing.T) {
defer file.Close()
scanner := bufio.NewScanner(file)
envs := []string{"PWD=/home", "SHELL=bash"}
envs := []string{"PWD=/home", "SHELL=bash", "KOREAN=한국어"}
for scanner.Scan() {
line := scanner.Text()