You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem. Thanks.
What steps will reproduce the problem?
1. Run program:
package main
import (
"fmt"
)
func main() {
var c int
for {
fmt.Scanf("%c", &c)
fmt.Printf("0x%X %c\n", c, c)
}
}
2. Type non-ascii characters and press enter.
What is the expected output?
For each character entered (including '\n'), that character's hex representation
followed by the character.
What do you see instead?
For non-ascii characters, Scanf reads 0xFFFD
What is your $GOOS? $GOARCH?
linux 386
Which revision are you using? (hg identify)
8e47d13b38be+ tip
(also in release)
Please provide any additional information below.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: