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

 
 

bug #42054: uint8 typecast error

Submitter:  None
Submitted:  Sat 05 Apr 2014 10:59:16 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  stefan Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.6.4
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Looks good to me. Also fixes bug #38956.

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

Oops.  I fixed it.

Thanks.

John W. Eaton <jwe>
Group 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>
Group Member
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>
Group 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 Files:
   
   
Comment:
   

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

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-04-07 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code