Operating System: Windows 10 (64-bit), Windows xp (32-bit)
Terminal Emulator: Command Prompt, PowerShell
Bug behaviour: Cannot input character which greater than "\u7fff" on Windows.
Test characters: "翽翾翿耀老" ("\u7ffd\u7ffe\u7fff\u8000\u8001").
I copied test characters to clipboard and pasted it, and the result was in the following screenshot.
But it work fine on OS X and Linux.
Expected behaviour: Can input character which greater than "\u7fff" on Windows.
But it work fine on OS X and Linux.
import ( "fmt" "github.com/peterh/liner" )
func main() { fmt.Println("\u7ffd\u7ffe\u7fff\u8000\u8001") line := liner.NewLiner() defer line.Close() input, _ := line.Prompt("input: ") fmt.Println(input) }