bugfix:when using pipe on shell and LANG=xx_XX.UTF-8 program can not stop