فهرست منبع

Merge pull request #313 from thareh/task-writeline-utf8-fix

WriteLine utf8 fix
Brucey 1 سال پیش
والد
کامیت
fd60b926e9
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