Pārlūkot izejas kodu

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

WriteLine utf8 fix
Brucey 1 gadu atpakaļ
vecāks
revīzija
fd60b926e9
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      stream.mod/stream.bmx

+ 1 - 1
stream.mod/stream.bmx

@@ -437,7 +437,7 @@ Type TStream Extends TIO
 			buf=str.ToCString()
 			buf=str.ToCString()
 			length = str.length
 			length = str.length
 		End If
 		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
 		MemFree buf
 		Return ok
 		Return ok
 	End Method
 	End Method