[armedbear-cvs] r12328 - trunk/abcl/src/org/armedbear/lisp
Erik Huelsmann
ehuelsmann at common-lisp.net
Sat Jan 2 23:22:48 UTC 2010
Author: ehuelsmann
Date: Sat Jan 2 18:22:48 2010
New Revision: 12328
Log:
Note a few codepoint to char conversions which are potential bugs.
Modified:
trunk/abcl/src/org/armedbear/lisp/LispReader.java
Modified: trunk/abcl/src/org/armedbear/lisp/LispReader.java
==============================================================================
--- trunk/abcl/src/org/armedbear/lisp/LispReader.java (original)
+++ trunk/abcl/src/org/armedbear/lisp/LispReader.java Sat Jan 2 18:22:48 2010
@@ -84,7 +84,7 @@
// Not reached.
return null;
}
- char c = (char) n;
+ char c = (char) n; // ### BUG: Codepoint conversion
if (rt.getSyntaxType(c) == Readtable.SYNTAX_TYPE_SINGLE_ESCAPE) {
// Single escape.
n = stream._readChar();
@@ -93,7 +93,7 @@
// Not reached.
return null;
}
- sb.append((char)n);
+ sb.append((char)n); // ### BUG: Codepoint conversion
continue;
}
if (Utilities.isPlatformWindows) {
@@ -229,7 +229,7 @@
int ch = stream._readChar();
if (ch < 0)
break;
- char c = (char) ch;
+ char c = (char) ch; // ### BUG: Codepoint conversion
if (c == '0' || c == '1')
sb.append(c);
else {
More information about the armedbear-cvs
mailing list