Fix for file in of UTF8 files (part 2). jv
authorJan Vrany <jan.vrany@fit.cvut.cz>
Wed, 27 Mar 2013 17:12:46 +0000
branchjv
changeset 18041 d17dbf11e306
parent 18040 a11a12546f23
child 18042 2aa6ef1820fe
Fix for file in of UTF8 files (part 2). When guessing an encoding, DO NOT change position. caller may want (and often wants) all data.
EncodedStream.st
--- a/EncodedStream.st	Wed Mar 27 12:24:15 2013 +0000
+++ b/EncodedStream.st	Wed Mar 27 17:12:46 2013 +0000
@@ -59,8 +59,12 @@
         decoder := CharacterEncoder nullEncoderInstance.
     ].
     decodedStream := self stream:aStream encoder:decoder.
-    decodedStream skipEncodingChunk.
+    "JV@2012-03-27: NO, DO NOT CHANGE POSITION!! Caller might be interested
+                    in all data!!!!!!"
+    "/decodedStream skipEncodingChunk.
     ^ decodedStream
+
+    "Modified: / 27-03-2013 / 17:08:38 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
 !EncodedStream methodsFor:'accessing'!