#BUGFIX by cg
class: CharacterArray class
changed: #decodeFromUTF8: (send #asSingleByteStringIfPossible instead of #asSingleByteString)
--- 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