#BUGFIX by cg
class: CharacterWriteStream
changed: #nextPutAll:startingAt:to:
allow writing bytes (needed for expecco,
to read from a binary zip stream into a
character write stream)
--- a/CharacterWriteStream.st Sat Apr 14 06:32:41 2018 +0200
+++ b/CharacterWriteStream.st Sat Apr 14 08:07:03 2018 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
"
COPYRIGHT (c) 2005 by eXept Software AG
All Rights Reserved
@@ -278,6 +280,12 @@
nextPutAll:aCollection startingAt:start to:stop
|needCharacterSize|
+ aCollection isCharacters ifFalse:[
+ aCollection isByteArray ifTrue:[
+ ^ super nextPutAll:aCollection startingAt:start to:stop
+ ]
+ ].
+
needCharacterSize := aCollection characterSize.
needCharacterSize > currentCharacterSize ifTrue:[
self characterSizeChangedTo:needCharacterSize size:stop-start+1.