diff --git a/src/header/ctype/mod.rs b/src/header/ctype/mod.rs
index 59e5c0ce6e557847c992a478c96e6f0b64fafb30..43df47411d2957590f04024d6bf7c6aa8a38927f 100644
--- a/src/header/ctype/mod.rs
+++ b/src/header/ctype/mod.rs
@@ -54,7 +54,12 @@ pub extern "C" fn ispunct(c: c_int) -> c_int {
 
 #[no_mangle]
 pub extern "C" fn isspace(c: c_int) -> c_int {
-    (c == 0x20) as c_int
+    (c == ' ' as c_int
+        || c == '\t' as c_int
+        || c == '\n' as c_int
+        || c == '\r' as c_int
+        || c == 0x0b
+        || c == 0x0c) as c_int
 }
 
 #[no_mangle]