fix(stdlib): strip CR from console lines
This commit is contained in:
1 parent
4a0caabc03
commit
e6b5678350
2 files changed
+14
-4
No files matched your search
+13
-3
@@ -60,19 +60,29 @@ EOF 返回 `{ok:false, code:"io.eof"}`,无效 UTF-8 返回可恢复错误。
|
||||
|
||||
4. `true`
|
||||
|
||||
**页 = (长度(字节) + 65535) // 65536**
|
||||
**数据长度 = 长度(字节)**
|
||||
|
||||
1. `数据长度 > 0 and 字节[数据长度 - 1] == 13`
|
||||
|
||||
**数据长度 = 数据长度 - 1**
|
||||
|
||||
2. `true`
|
||||
|
||||
**忽略 = 0**
|
||||
|
||||
**页 = (数据长度 + 65535) // 65536**
|
||||
|
||||
**数据 = memory.new(页, 页)**
|
||||
|
||||
**下标 = 0**
|
||||
|
||||
- `下标 < 长度(字节)`
|
||||
- `下标 < 数据长度`
|
||||
|
||||
**`数据[下标] = 字节[下标]`**
|
||||
|
||||
**下标 = 下标 + 1**
|
||||
|
||||
**解码 = utf8.解码(数据, 0, 长度(字节))**
|
||||
**解码 = utf8.解码(数据, 0, 数据长度)**
|
||||
|
||||
1. `not 解码.ok`
|
||||
|
||||
|
||||
Reference in new issue
Block a user