mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 13:50:53 +00:00
------------------------------------------------------------------------
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:
parent
602e8cfb45
commit
1e9b79279c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue