fix windows cygwin & mingw chinese text view