Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
fmt: Go tip %q generates a Go string not readable by Go 1.0.3? #4346
I generated a Go program that embeds a PNG file in a Go program using: b, err := ioutil.ReadAll("foo.png") ... fmt.Fprintf(f, "... %q ... ") And it compiled file in Go 1.1. My friend, compiling with Go 1.0.3, got compilation errors, about invalid code points: 0xdde1 0xddcb 0xdd0c The PNG files in question are attached. I ended up working around the problem by not using fmt's %q and just doing the quoted string construction by hand. Is this a bug? (filing at least before I forget)