CVS: seamlessrdp/ServerExe vchannel.c,1.9,1.10

Pierre Ossman <[email protected]> Fri, 17 Mar 2006 01:54:19 -0800
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/seamlessrdp/ServerExe
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11862/ServerExe

Modified Files:
	vchannel.c 
Log Message:
Acidentally implemented the USC-4 algorithm instead of the USC-2 one.


Index: vchannel.c
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/vchannel.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** vchannel.c	15 Mar 2006 13:19:53 -0000	1.9
--- vchannel.c	17 Mar 2006 09:54:17 -0000	1.10
***************
*** 86,90 ****
  			size -= 2;
  		}
! 		else if (*string < 0x10000)
  		{
  			if (size < 3)
--- 86,90 ----
  			size -= 2;
  		}
! 		else if ((*string < 0xD800) || (*string > 0xDFFF))
  		{
  			if (size < 3)
***************
*** 95,108 ****
  			size -= 2;
  		}
- 		else if (*string < 0x200000)
- 		{
- 			if (size < 4)
- 				break;
- 			*buf++ = 0xF0 | (*string >> 18);
- 			*buf++ = 0x80 | (*string >> 12 & 0x3F);
- 			*buf++ = 0x80 | (*string >> 6 & 0x3F);
- 			*buf++ = 0x80 | (*string & 0x3F);
- 			size -= 2;
- 		}
  
  		string++;
--- 95,98 ----



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642