-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix broken encoding (fixes #920) #1118
Fix broken encoding (fixes #920) #1118
Conversation
(it seems like it's not broken for documents where it wouldn't matter if it was broken)
I'm sure this doesn't completely fix this broken behaviour, but it fixes the flavour of it that bit me.
d92dbd9
to
f6ffb3c
Compare
Please let me know if there's anything I can do to help get this merged. Thanks! |
Am also hitting this issue, is there any path to merging this PR? |
:tumbleweeds: |
Thanks for your help with this matter is greatly appreciated and I will get it from the working class people who have been trying to get in touch with me and well-being. |
Please fix. We've been having this issue for a long time, as Danger relies on this library for diffing pull requests. |
…Should get back up once octokit/octokit.rb#1118 is merged
…Should get back up once octokit/octokit.rb#1118 is merged
* Updating to FBSnapshotTestCase's latest 6.2.0 & updating snapshot tests accordingly for Xcode 11.3 * Disabling Danger for now, since it's crashing lately due to octokit. Should get back up once octokit/octokit.rb#1118 is merged * Updating the simulator env and Xcode version * scheme config
@lparry apologies for the delay. After conferring with a few colleagues to verify my initial reaction, we've come to the conclusion that this is a breaking change. We're working toward the release of v5 but I think it'll be a while before we get there with the generated client.
It's an issue with the adapter that is used with Faraday lostisland/faraday#139. Some adapters handle it better than others. In the mean time we can still work together to make this change more robust for all of our use cases. Here's probably what we'll need to do:
If this sounds agreeable please let me know @lparry, and again thanks for being so patient. |
@lparry thinking about this more, this sounds like a good middleware that we could allow users to opt into. I don't think that would be a breaking change. |
I haven't at this point. I might try and look at it in the next few weeks. It's GitHub Satellite this week and I'm on vacation the next. |
Beauty! Many thanks. 🙏 |
Hi @tarebyte! Unfortunately, @titanium-cranium has recently moved on to another company and I'm now picking up the ball to determine the status of the proposed fix. #dejavu 😅 Is there any news on this? Could you please review and merge this change? Thank you! |
'👋 Hey Friends, this pull request has been marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the |
Hey @nickfloyd! 👋 Why not merge it, instead? We've been using a fork with this solution and it's been working well since 2019 (when this PR was opened). |
Hey @lucascaton, thanks for the response; we can do that! Being over a year old with merge conflicts will make that a bit challenging if we do not have push access to If not, no worries; we'll prioritize it and see if we can reach out to @lparry to enable edits for maintainers if needed, if not we can hoist these changes into another more recent branch of main and get it in that way. |
Hi @nickfloyd, I've just merged |
Hi @nickfloyd, is there anything else you'd like me to change? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! ❤️
We have run into problems where using
client.content()
returns an 8-bit ascii string, while the source file is UTF-8, as is reaffirmed by the charset within the content type header.This PR checks for that charset header, and when found calls
#force_encoding
on the ascii string to make the UTF-8 characters be interpreted correctly.I had to do some VCR cassette doctoring in order to reference the new fixture as though it was already in the canonical repo and already on master. Hopefully I didn't mess it up in some unforeseen way
Should fix #920