Skip to content

os: Windows readConsole fails on short read of multi-byte rune #17097

Closed
@mattn

Description

@mattn

What version of Go are you using (go version)?

go version devel +6fd8c00 Wed Sep 14 08:42:28 2016 +0000 windows/amd64

What operating system and processor architecture are you using (go env)?

windows/amd64

Windows7 64bit

What did you do?

package main

import (
    "fmt"
)

func main() {
    var foo string
    fmt.Scan(&foo)
    fmt.Println(foo)
}

And type multi-byte string for example 世界

What did you expect to see?

print 世界

What did you see instead?

print empty

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.OS-Windows

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions