You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WAVersionUploader>>#newVersion: uses an RWBinaryOrTextStream that gets set to binary mode when the MCZ data is written to it. That breaks the response #nextPutAll: when we get to GRPharoUtf8CodecStream>>#nextPutAll: because that expects some form of String and sends #isByteString. ByteArrays do not implement tht and so we get a dNU.
Adding an explicit #ascii near the end of the method forces the stream to non-binary mode and the response is happy.
I’m not using Squeak, but I did make some changes for it in the past and managed to publish to filetree and hence to make a GitHub PR for the code contribution.
Since I notice Max doing this for the other Squeak-related issues, is there no tutorial/walkthrough/… to guide Squeakers to publish a PR?
Johan
Also, I'm not sure that is the way to go since a 'Pharo-specific' class is being used in Squeak. It might make sense to check fix the proper stream abstraction in Grease. But... I just read the issue, not the code solution atm.
WAVersionUploader>>#newVersion: uses an RWBinaryOrTextStream that gets set to binary mode when the MCZ data is written to it. That breaks the response #nextPutAll: when we get to GRPharoUtf8CodecStream>>#nextPutAll: because that expects some form of String and sends #isByteString. ByteArrays do not implement tht and so we get a dNU.
Adding an explicit #ascii near the end of the method forces the stream to non-binary mode and the response is happy.
WAVersionUploader-newVersion.txt
The text was updated successfully, but these errors were encountered: