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@837 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch 2009-07-10 22:48:48 +00:00
parent 7b6b425b75
commit 490ae0bb19
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2009-07-11 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
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.
2009-07-11 Joerg Wunsch <j.gnu@uriah.heep.sax.de> 2009-07-11 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
* jtagmkI.c (jtagmkI_send): Replace %zd format by %u since not all * jtagmkI.c (jtagmkI_send): Replace %zd format by %u since not all

View File

@ -92,6 +92,7 @@ static void convertUniToAscii(char *buffer)
while(*uni != 0){ while(*uni != 0){
if(*uni >= 256){ if(*uni >= 256){
*ascii++ = '?'; *ascii++ = '?';
uni++;
}else{ }else{
*ascii++ = *uni++; *ascii++ = *uni++;
} }