bugGNU Octave - Bugs: bug #42054, uint8 typecast error

 
 

bug #42054: uint8 typecast error

Submitted by:  None
Submitted on:  Sat 05 Apr 2014 10:59:16 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: stefanOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.6.4
Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 05 Apr 2014 09:29:00 PM UTC, comment #4:

Looks good to me. Also fixes bug #38956.

Mike Miller <mtmiller>
Project Administrator
Sat 05 Apr 2014 09:14:02 PM UTC, comment #3:

Oops. I fixed it.

Thanks.

John W. Eaton <jwe>
Project Administrator
Sat 05 Apr 2014 09:08:43 PM UTC, comment #2:

It looks like you also accidentally committed some unrelated changes to fplot.m in http://hg.savannah.gnu.org/hgweb/octave/rev/37c300acfcfd.

Mike Miller <mtmiller>
Project Administrator
Sat 05 Apr 2014 07:31:25 PM UTC, comment #1:

I checked in the following change (tests were accidentally omitted from my first commit):

http://hg.savannah.gnu.org/hgweb/octave/rev/37c300acfcfd
http://hg.savannah.gnu.org/hgweb/octave/rev/c644ed73c6ce

I think this change makes my recent fix for fwrite unnecessary, but I'll leave that in place anyway.

John W. Eaton <jwe>
Project Administrator
Sat 05 Apr 2014 10:59:16 AM UTC, original submission:

I found a significant error in uint8 typecast.

uint8('ä')
returns 0

compare this result to:

double('ä')
returns 228

This affects a lot of functions like fwrite,...
and also other characters like: €,§,²,³,ü,ö,...

Greetings
Stefan

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

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 rik5 (Updated the item)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by jwe (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 project members can vote.

     

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

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 07 Apr 2014 03:24:50 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1