octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #54622] test importdata fails in dev octave wi


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows
Date: Mon, 10 Sep 2018 17:19:03 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

Follow-up Comment #48, bug #54622 (project octave):

"I wrote a quick C++ program and tolower(-2) returned 254 which is weird."  -2
in two's complement is the same bit representation as 254 unsigned.  Bitwise,
arithmetic is pretty much the same, just how one treats the sign bit:


Unsigned
--------
255  FF
254  FE
  ...
128  F0
127  7F
  ...
0    00

Signed
------
127  EF
  ...
0    00
-1   FF
-2   FE
  ...
-128 F0


I think you are right about the lolower() not being defined.  Perhaps the
ASCII test needs to be done prior to the tolower() call to confirm it is in
proper range before treating as ASCII.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?54622>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]