浏览代码

Merge branch 'master' of https://gitlab.redox-os.org/redox-os/relibc

Jeremy Soller 6 年之前
父节点
当前提交
28dab8ece8
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/header/ctype/mod.rs

+ 6 - 1
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]