Fix ctype test
@@ -45,7 +45,9 @@ func generateCharacterTable() {
c |= ((1 << (6)) << 8)
}
- if unicode.IsGraphic(rune(i)) {
+ // The IsSpace check is required becuase Go treats spaces as graphic
+ // characters, which C does not.
+ if unicode.IsGraphic(rune(i)) && !unicode.IsSpace(rune(i)) {
c |= ((1 << (7)) << 8)
}
