Telnet.Read Until: Verify that the output contains expected before decoding.
Telnet.Read Until: Verify that the output contains expected before decoding.

Update issue 1328
After we had started to use UTF-8 and ignore as the default encoding parameters, this Python bug hit us:
http://bugs.python.org/issue8271

In short that bug meant that decoding '\xf21234' resulted with '4' by default when you would expect '1234'. This caused problems when Read Until was comparing that the expected value had actually was found from the returned output.

Luckily avoiding this bug is pretty simple as we only need to verify that output contains the extected string before decoding it. As an added bonus, the code also got more clean.

jorik041/robotframework,ashishdeshpande/robotframework,wojciechtanski/robotframework,xiaokeng/robotframework,moto-timo/robotframework,snyderr/robotframework,userzimmermann/robotframework,Colorfulstan/robotframework,HelioGuilherme66/robotframework,nmrao/robotframework,kurtdawg24/robotframework,yonglehou/robotframework,kyle1986/robortframe,wojciechtanski/robotframework,joongh/robotframework,yahman72/robotframework,synsun/robotframework,nmrao/robotframework,edbrannin/robotframework,robotframework/robotframework,userzimmermann/robotframework,rwarren14/robotframework,snyderr/robotframework,kurtdawg24/robotframework,Colorfulstan/robotframework,stasiek/robotframework,SivagnanamCiena/robotframework,nmrao/robotframework,edbrannin/robotframework,snyderr/robotframework,dkentw/robotframework,un33k/robotframework,jorik041/robotframework,edbrannin/robotframework,suvarnaraju/robotframework,SivagnanamCiena/robotframework,eric-stanley/robotframework,HelioGuilherme66/robotframework,edbrannin/robotframework,yonglehou/robotframework,dkentw/robotframework,kyle1986/robortframe,SivagnanamCiena/robotframework,rwarren14/robotframework,eric-stanley/robotframework,jaloren/robotframework,moto-timo/robotframework,stasiek/robotframework,rwarren14/robotframework,un33k/robotframework,rwarren14/robotframework,fingeronthebutton/robotframework,JackNokia/robotframework,alexandrul-ci/robotframework,rwarren14/robotframework,stasiek/robotframework,ChrisHirsch/robotframework,Colorfulstan/robotframework,kyle1986/robortframe,wojciechtanski/robotframework,yahman72/robotframework,synsun/robotframework,fingeronthebutton/robotframework,alexandrul-ci/robotframework,stasiek/robotframework,xiaokeng/robotframework,suvarnaraju/robotframework,robotframework/robotframework,un33k/robotframework,jaloren/robotframework,userzimmermann/robotframework,yahman72/robotframework,ashishdeshpande/robotframework,Colorfulstan/robotframework,nmrao/robotframework,synsun/robotframework,suvarnaraju/robotframework,HelioGuilherme66/robotframework,snyderr/robotframework,synsun/robotframework,jaloren/robotframework,yahman72/robotframework,wojciechtanski/robotframework,moto-timo/robotframework,un33k/robotframework,userzimmermann/robotframework,fingeronthebutton/robotframework,un33k/robotframework,wojciechtanski/robotframework,nmrao/robotframework,joongh/robotframework,joongh/robotframework,dkentw/robotframework,eric-stanley/robotframework,JackNokia/robotframework,JackNokia/robotframework,robotframework/robotframework,ChrisHirsch/robotframework,jaloren/robotframework,jorik041/robotframework,moto-timo/robotframework,ChrisHirsch/robotframework,kurtdawg24/robotframework,alexandrul-ci/robotframework,edbrannin/robotframework,alexandrul-ci/robotframework,moto-timo/robotframework,suvarnaraju/robotframework,joongh/robotframework,ChrisHirsch/robotframework,synsun/robotframework,xiaokeng/robotframework,kurtdawg24/robotframework,fingeronthebutton/robotframework,yahman72/robotframework,alexandrul-ci/robotframework,ashishdeshpande/robotframework,dkentw/robotframework,ashishdeshpande/robotframework,JackNokia/robotframework,kyle1986/robortframe,userzimmermann/robotframework,ChrisHirsch/robotframework,SivagnanamCiena/robotframework,jaloren/robotframework,JackNokia/robotframework,jorik041/robotframework,yonglehou/robotframework,xiaokeng/robotframework,dkentw/robotframework,jorik041/robotframework,joongh/robotframework,yonglehou/robotframework,stasiek/robotframework,snyderr/robotframework,ashishdeshpande/robotframework,Colorfulstan/robotframework,xiaokeng/robotframework,yonglehou/robotframework,kyle1986/robortframe,kurtdawg24/robotframework,suvarnaraju/robotframework,eric-stanley/robotframework,SivagnanamCiena/robotframework,fingeronthebutton/robotframework