Changeset 11426


Ignore:
Timestamp:
12/06/08 14:18:06 (13 years ago)
Author:
ehuelsmann
Message:

Make sure we don't write more characters to the string than requested:
no eol translation for strings.

Location:
branches/open-external-format/src/org/armedbear/lisp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/open-external-format/src/org/armedbear/lisp/StringInputStream.java

    r11424 r11426  
    5454        elementType = Symbol.CHARACTER;
    5555        setExternalFormat(keywordDefault);
    56        
     56        //###FIXME: we actually want RAW here
     57        eolStyle = EolStyle.LF;
     58
    5759        stringReader = new StringReader(s.substring(start, end));
    5860        initAsCharacterInputStream(stringReader);
  • branches/open-external-format/src/org/armedbear/lisp/StringOutputStream.java

    r11420 r11426  
    4848    {
    4949        this.elementType = elementType;
     50        //###FIXME we actually want RAW here
     51        this.eolStyle = EolStyle.LF;
    5052        initAsCharacterOutputStream(stringWriter = new StringWriter());
    5153    }
     
    8284        if (elementType == NIL)
    8385            return 0;
    84         return stringWriter.toString().length();
     86        return stringWriter.getBuffer().length();
    8587    }
    8688
Note: See TracChangeset for help on using the changeset viewer.