Skip to content

syscall: reading os.Stdin does not treat ^Z as EOF on Windows #6303

Closed
@mattn

Description

@mattn
1. call io.Copy(os.Stdout, os.Stdin)
2. Type CTRL-Z on console


What is the expected output?

  Interrupt stdin

What do you see instead?

  Seeing ^Z character

Which compiler are you using (5g, 6g, 8g, gccgo)?

  8g

Which operating system are you using?

  Windows 7

Which version are you using?  (run 'go version')

  go version devel +2f13cc5d7043 Tue Aug 27 14:53:57 2013 +1000 windows/386


Please provide any additional information below.

  https://groups.google.com/forum/#!topic/golang-dev/xnjP0VlL2nw

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions