------------------------------------------------------------------------

r4181 | acceptthis | 2013-01-27 18:06:56 +0000 (Sun, 27 Jan 2013) | 1 line

fix pasting of utf-8 text, and probably some other similar bugs.
------------------------------------------------------------------------


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4179 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-03-12 22:38:20 +00:00
parent 602e8cfb45
commit 1e9b79279c

View file

@ -2105,7 +2105,7 @@ unsigned int utf8_encode(void *out, unsigned int unicode, int maxlen)
do
{
shift = shift-6;
*((unsigned char *)out) += (unsigned char)((unicode>>shift)&0x3f) | 0x80;
*((unsigned char *)out) = (unsigned char)((unicode>>shift)&0x3f) | 0x80;
out = (char*)out + 1;
}
while(shift);