#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Thu, 04 Oct 2018 13:30:18 +0200
changeset 23400 d931839b8ce0
parent 23399 59fecf156230
child 23401 6b1a81de23a4
#BUGFIX by cg class: CharacterArray class changed: #decodeFromUTF8: (send #asSingleByteStringIfPossible instead of #asSingleByteString)
CharacterArray.st
--- a/CharacterArray.st	Thu Oct 04 10:11:27 2018 +0200
+++ b/CharacterArray.st	Thu Oct 04 13:30:18 2018 +0200
@@ -392,7 +392,7 @@
     
     encodedSize == decodedSize ifTrue:[
         "/ fast track, also avoid creation of new strings if aStringOrByteCollection is already a 7-bit string
-        ^ aStringOrByteCollection asSingleByteString
+        ^ aStringOrByteCollection asSingleByteStringIfPossible
     ].
 
     nBitsRequired := 8.
@@ -528,6 +528,7 @@
     "
 
     "Modified: / 07-02-2017 / 17:41:17 / stefan"
+    "Modified: / 04-10-2018 / 13:29:53 / Claus Gittinger"
 !
 
 setupNormalizationMaps
@@ -1062,6 +1063,7 @@
     "
 ! !
 
+
 !CharacterArray methodsFor:'Compatibility-ANSI'!
 
 addLineDelimiters