[armedbear-cvs] r11973 - trunk/abcl/src/org/armedbear/lisp/util
Erik Huelsmann
ehuelsmann at common-lisp.net
Mon Jun 1 07:53:26 UTC 2009
Author: ehuelsmann
Date: Mon Jun 1 03:53:07 2009
New Revision: 11973
Log:
Don't clear the buffer. It could be non-empty.
Modified:
trunk/abcl/src/org/armedbear/lisp/util/RandomAccessCharacterFile.java
Modified: trunk/abcl/src/org/armedbear/lisp/util/RandomAccessCharacterFile.java
==============================================================================
--- trunk/abcl/src/org/armedbear/lisp/util/RandomAccessCharacterFile.java (original)
+++ trunk/abcl/src/org/armedbear/lisp/util/RandomAccessCharacterFile.java Mon Jun 1 03:53:07 2009
@@ -387,9 +387,6 @@
}
private void encodeAndWrite(CharBuffer cbuf, boolean flush, boolean endOfFile) throws IOException {
- if (bbufpos == fcnsize) {
- bbuf.clear();
- }
while (cbuf.remaining() > 0) {
CoderResult r = cenc.encode(cbuf, bbuf, endOfFile);
bbufIsDirty = true;
More information about the armedbear-cvs
mailing list