forked from github/server
fix new bug in ascii converter.
This commit is contained in:
parent
abf548cecd
commit
a3499dd895
1 changed files with 3 additions and 0 deletions
|
@ -578,6 +578,9 @@ int unicode_utf8_to_ascii(unsigned char *cp_character, const char * utf8_string,
|
|||
if (*length > 1) {
|
||||
*cp_character = '?';
|
||||
}
|
||||
else {
|
||||
*cp_character = (unsigned char)ucs4_character;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue