﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
229	@error and @extended not returning appropriate values for BinaryToString if input binary string contains 00	steve8tch		"I have done some testing. BinaryToString will return the a value up to when it sees the first ""00"" in the Binary String. The problem is @error still shows 0 - so the return value may or may not contain any values depending on the position of any ""00"" entries in the Binary string. We have no way to easily test the output from BinaryToString for any ""00"" values in input Binary String

{{{
;binary to string test
;Binary message consisting of a ""length component"" followed by the string part
$err = 99
$ext = 99
$bin_msg = ""0x0000000548656C6C6F""
;To get hold of sting part of message I do this
$bin_str = ""0x"" & StringTrimLeft($bin_msg,10)
$rtn = BinaryToString($bin_str)
$err = @error
$ext = @extended
msgbox(0,""This works OK"",""$rtn = "" & $rtn & @CRLF & ""$err = "" & $err & @CRLF & ""$ext = "" & $ext)
;This suggests that BinaryToString function is returning @error and @extended
; but...
$rtn = BinaryToString($bin_msg)
$err = @error
$ext = @extended
;This does not work - no error, no extended and actually causes Msgbox() to work incorrectly
msgbox(0,""Where are the $err and $ext entries ?"",""$rtn = "" & $rtn & @CRLF & ""$err = "" & $err & @CRLF & ""$ext = "" & $ext)
}}}"	Bug	closed		AutoIt	3.2.10.0	None	Rejected	BinaryToString	
