#BUGFIX by stefan
authorStefan Vogel <sv@exept.de>
Mon, 15 Jan 2018 22:28:19 +0100
changeset 22422 d7595ebb066a
parent 22421 048d9231773d
child 22423 ebb20e21f75e
#BUGFIX by stefan class: EncodedStream changed: #position correct previous fix
EncodedStream.st
--- 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