Changeset 13415 for trunk/abcl/src/org


Ignore:
Timestamp:
07/26/11 18:50:04 (10 years ago)
Author:
Mark Evenson
Message:

Don't print the #\Uxxxx representation for character codes greater than 0xff.

We make #\Uxxxx a synonym of character code but not the cannonical
character name, using instead the unicode character at that point.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/LispCharacter.java

    r13402 r13415  
    627627      }
    628628
    629     if (c > 255) {
    630         final String result = "0000" + Integer.toString(c, 16);
    631         return "U" + result.substring(result.length() - 4, result.length());
    632     }
    633        
    634     if (c<0) return null;
     629    if (c<0 || c>255) return null;
    635630    return lispChars.get(c).name;
    636631  }
Note: See TracChangeset for help on using the changeset viewer.