#BUGFIX by stefan
class: EncodedStream
changed: #position
correct previous fix
--- a/EncodedStream.st Mon Jan 15 22:25:56 2018 +0100
+++ b/EncodedStream.st Mon Jan 15 22:28:19 2018 +0100
@@ -364,11 +364,11 @@
pos := stream position.
peekChar notNil ifTrue:[
"#position: nils peekChar - make sure, that it positions before peekChar"
- pos := pos - peekChar utf8BytesPerCharacter.
+ pos := pos - encoder characterSize:peekChar.
].
^ pos.
- "Modified (format): / 15-01-2018 / 22:25:03 / stefan"
+ "Modified: / 15-01-2018 / 22:27:36 / stefan"
!
position0Based