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:
parent
7b6b425b75
commit
490ae0bb19
|
@ -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
|
||||||
|
|
|
@ -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++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue