From f7c7c8072d67748e289d16675e671569beb880bb Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Tue, 3 Nov 2015 11:34:01 -0500 Subject: [PATCH] errata: mistakes in UTF-8 table --- errata.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/errata.html b/errata.html index f57c84a..49ef595 100644 --- a/errata.html +++ b/errata.html @@ -34,6 +34,17 @@ pre { p.52, ¶2: for "an synonym", read "a synonym", twice.

+

+ p.68: the table of UTF-8 encodings is missing a bit from each first byte. + The corrected table is shown below. (Thanks to Akshay Kumar, 2015-11-02.) +

+ +
+0xxxxxxx                             runes 0−127     (ASCII)
+110xxxxx 10xxxxxx                    128−2047        (values <128 unused)
+1110xxxx 10xxxxxx 10xxxxxx           2048−65535      (values <2048 unused)
+11110xxx 10xxxxxx 10xxxxxx 10xxxxxx  65536−0x10ffff  (other values unused)
+

p.74: the comment in gopl.io/ch3/printints should say fmt.Sprint, not fmt.Sprintf.