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.

Submitted by:  None
Submitted on:  Mon 11 May 2009 01:37:11 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Joerg Wunsch <joerg_wunsch>Originator Name: Roger Wolff
Originator Email: -unavailable-Open/Closed: Closed
Release: NoneProgrammer 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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 10 Jul 2009 10:49:15 PM UTCjoerg_wunschStatusNeed Info=>Fixed
      Assigned toNone=>joerg_wunsch
      Open/ClosedOpen=>Closed
    Wed 01 Jul 2009 04:01:10 PM UTCjoerg_wunschStatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1