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:
parent
0b871f2b6e
commit
7c3826dc34
|
@ -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>
|
||||
|
||||
* jtagmkI.c (jtagmkI_send): Replace %zd format by %u since not all
|
||||
|
|
|
@ -92,6 +92,7 @@ static void convertUniToAscii(char *buffer)
|
|||
while(*uni != 0){
|
||||
if(*uni >= 256){
|
||||
*ascii++ = '?';
|
||||
uni++;
|
||||
}else{
|
||||
*ascii++ = *uni++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue