Bug #1261
ASCII function
Description
The ascii
function returns negative values for characters with code greater than 127.
I think it is better for non-negative ASCII values to be produced, because I believe this is less of a "nasty surprise". The CoCoA-5 manual says nothing.
History
#1 Updated by John Abbott about 5 years ago
- Category set to bug
- Status changed from New to In Progress
- Assignee set to John Abbott
- Target version set to CoCoA-5.3.0
- % Done changed from 0 to 30
I have fixed the code in my local copy (BuiltinFunctions.C
) so that it uses unsigned char
instead of char
. Now the values produced are non-negative, and all CoCoA-5 tests pass.
NOTE new version of BuiltinFunctions.C
sent to Anna for checking in.
#2 Updated by John Abbott over 4 years ago
- Status changed from In Progress to Feedback
- % Done changed from 30 to 90
No reaction in the last 5 months; did Anna test the code (and check it in)?
Moving to feedback.
#3 Updated by John Abbott over 4 years ago
- Status changed from Feedback to Closed
- Target version changed from CoCoA-5.3.0 to CoCoA-5.4.2
- % Done changed from 90 to 100
- Estimated time set to 0.55 h
Still no reaction. Anyway, there is a test in exbugs.cocoa5
. So we can close.
#4 Updated by Anna Maria Bigatti over 4 years ago
- Target version changed from CoCoA-5.4.2 to CoCoA-5.3.0