mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-16 10:41:07 +00:00
Submitted by Roger Wolff:
bug #26527: bug in unicode conversion * ser_avrdoper.c (convertUniToAscii): when encountering a UTF-16 character that cannot be converted to ASCII, increment the UTF-16 pointer anyway when proceeding. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@837 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -92,6 +92,7 @@ static void convertUniToAscii(char *buffer)
|
||||
while(*uni != 0){
|
||||
if(*uni >= 256){
|
||||
*ascii++ = '?';
|
||||
uni++;
|
||||
}else{
|
||||
*ascii++ = *uni++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user