Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Squeak WAVersionUploader>>#newVersion: needs to make sure the RWBinaryOrTextStream is ascii #1391

Open
timrowledge opened this issue Nov 9, 2023 · 2 comments

Comments

@timrowledge
Copy link

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

@jbrichau
Copy link
Member

jbrichau commented Nov 11, 2023 via email

@jbrichau
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants