bugAVR Downloader/UploaDEr - Bugs: bug #26527, bug in unicode conversion.

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #26527: bug in unicode conversion.

Submitter:  None
Submitted:  Mon 11 May 2009 01:37:11 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  joerg_wunsch Originator Name:  Roger Wolff
Originator Email:  -email is unavailable- Open/Closed:  Closed
Release:  None Programmer hardware: 
Device type: 

Fri 10 Jul 2009 10:46:06 PM UTC, comment #3: 

Thanks.  I would have preferred if you had attached it
separately (as a file), as the web interface mangles the
source code posted, but I've finally been able to see what
your intention is.

Joerg Wunsch <joerg_wunsch>
Group administrator
Wed 01 Jul 2009 04:07:44 PM UTC, comment #2: 

abra2:~> diff -u oldversion yourversion
--- oldversion  2009-07-01 18:05:47.000000000 +0200
+++ yourversion 2009-07-01 18:06:18.000000000 +0200
@@ -6,6 +6,7 @@
 while(*uni != 0){
 if(*uni >= 256){
 *ascii++ = '?';
+uni++;
 }else{
 ascii++ = uni++;
 }
abra2:~>

Roger Wolff <rewolff>
Wed 01 Jul 2009 04:01:10 PM UTC, comment #1: 

Sorry, I cannot really figure our what you are trying to
tell.

Are you able to attach your suggested change as a unified
context diff?  This is the output of diff -u, as in:

diff -u oldversion yourversion > filename.diff

Joerg Wunsch <joerg_wunsch>
Group administrator
Mon 11 May 2009 01:37:11 PM UTC, original submission:  

static void convertUniToAscii(char *buffer)
{
    unsigned short  uni = (void )buffer;
    char            *ascii = buffer;

    while(*uni != 0){
        if(*uni >= 256){
            *ascii++ = '?';
        }else{
            *ascii++ = *uni++;
        }
    }
    *ascii++ = 0;
}

static void convertUniToAscii(char *buffer)
{
    unsigned short  uni = (void )buffer;
    char            *ascii = buffer;

    while(*uni != 0){
        if(*uni >= 256){
            *ascii++ = '?';
uni++;
        }else{
            *ascii++ = *uni++;
        }
    }
    *ascii++ = 0;
}


Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rewolff (Posted a comment)
  • -email is unavailable- added by joerg_wunsch (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-07-10 joerg_wunsch StatusNeed Info Fixed
        Assigned toNone joerg_wunsch
        Open/ClosedOpen Closed
    2009-07-01 joerg_wunsch StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code