/[rdesktop]/sourceforge.net/trunk/seamlessrdp/ServerExe/vchannel.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/seamlessrdp/ServerExe/vchannel.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1134 by ossman_, Wed Mar 15 13:19:54 2006 UTC revision 1152 by ossman_, Fri Mar 17 09:54:17 2006 UTC
# Line 85  unicode_to_utf8(const unsigned short *st Line 85  unicode_to_utf8(const unsigned short *st
85                          *buf++ = 0x80 | (*string & 0x3F);                          *buf++ = 0x80 | (*string & 0x3F);
86                          size -= 2;                          size -= 2;
87                  }                  }
88                  else if (*string < 0x10000)                  else if ((*string < 0xD800) || (*string > 0xDFFF))
89                  {                  {
90                          if (size < 3)                          if (size < 3)
91                                  break;                                  break;
# Line 93  unicode_to_utf8(const unsigned short *st Line 93  unicode_to_utf8(const unsigned short *st
93                          *buf++ = 0x80 | (*string >> 6 & 0x3F);                          *buf++ = 0x80 | (*string >> 6 & 0x3F);
94                          *buf++ = 0x80 | (*string & 0x3F);                          *buf++ = 0x80 | (*string & 0x3F);
95                          size -= 2;                          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;  
96                  }                  }
97    
98                  string++;                  string++;

Legend:
Removed from v.1134  
changed lines
  Added in v.1152

  ViewVC Help
Powered by ViewVC 1.1.26