Reported by nils.winter, Today (2 hours ago)
WideString asByteString does not return a ByteString.

Pharo image: Pharo
Pharo core version: Pharo-1.1-11367-Beta
Virtual machine used: Squeak 4.2.4beta1U
Class browser used (if applicable): OBSystemBrowserAdaptor


Steps to reproduce:

1. 'π' asByteString isByteString "false, shouldn't that be true?"

Shouldn't that at least fail? I would suspect, that String>>asByteString should 
be something like 

asByteString
        | string |
        "Convert the receiver into a ByteString"
        string := ByteString new: self byteSize.
        1 to: self byteSize do: [: i | string byteAt: i put: (self byteAt: i)].
        ^string

(copied that from asOctedString and replaced #size, #at:put: and #at: with 
their byte-versions
)

btw: The display of 'π' seems to be broken on 1.1 is displayed as '?? and has 
some strange cursor issued but functionality is there
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to