瀏覽代碼

WriteLine utf8 fix

Thareh 1 年之前
父節點
當前提交
ae2c15ed71
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      stream.mod/stream.bmx

+ 1 - 1
stream.mod/stream.bmx

@@ -437,7 +437,7 @@ Type TStream Extends TIO
 			buf=str.ToCString()
 			length = str.length
 		End If
-		Local ok:Int=Write( buf,str.length )=str.length And Write( [13:Byte,10:Byte],2 )=2
+		Local ok:Int=Write( buf,length )=length And Write( [13:Byte,10:Byte],2 )=2
 		MemFree buf
 		Return ok
 	End Method