From de55b2e29a67cc60f314861a87f6743e9c4b018c Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Tue, 3 Aug 2021 17:57:13 +0700 Subject: [PATCH] Fix `AvariceTcpStream`'s encoding `AvariceTcpStream` was wrongly committed with utf16be encoding at some point. This patch fixes it. --- sources/Avarice/AvariceTcpStream.uc | Bin 27008 -> 13032 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/sources/Avarice/AvariceTcpStream.uc b/sources/Avarice/AvariceTcpStream.uc index e0c3a1de48970421a309f4214be54c0f9e096895..34b966c788e236a2535a7c5f8f5bfa522da276e0 100644 GIT binary patch literal 13032 zcmds7ZExE~68`RAu?=vI+;il_Nr0fK1IUh@=n&h2C0`I+3yTt07Hf*sk(5Q$?!%ov*b=!rJ3BAW%+Boo4?pafAB<@YZ5RblbJOn)r=Ozawr_@UkmqKU zW@eZsi5(VEa$}0rwC;i|8rr7J>y4w_jm*dCEDp`Ua(o_zHnX7#5)&nb&5|HC(PSFi ziA{>2h|X*5v7^m&ymmG&G+e z_awI_06%<^k0Gmp(BX_z^3ZiWn9~%5Mbvxd&Sp7f{?Ze7l=e)Tk&8x9kmbyzQ|e|H zd@f8JfFD0~eaFjd{ z*5zgEy!YiT1{W}&!q_{jq-ZP=b_a20K~gNhI4PW+TpoYKl-5!EQ@i&C?3>ee@BF0O zHK!Msre!*<%U=8V>Qn2|bgnKt7u}PlF`r^7loWgy$O>aWRv`4i3J(GjIpTybn`G8ZvzvYB zochl9-;tO79d$|PfN<1qk=bBk>~Dol!rVC5-J!pPcFJdI()g6#+}NzuY45(>*@5qx zX%^i$3!92mHXZaonObHIKs0kc4 zxUmpcm9%4#Kw?r%%lOT$(@r4hiDE!vZ3voGkV%soB{~lTXUNRQG%w!P-U3^=S$W$@ zvz52)X)6pf1BFe}!ty(qbzE>3aOwvV1aEtE0Gg|5_f>QO+Ew4*|2Gj>@a|HsQm};UQ+uRwM5@lzTR_kSVc0RGl&Gh9217yU zN++gw-0@a~E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