{"action":"created","issue":{"url":"https://api.github.com/repos/rubygems/rubygems/issues/863","labels_url":"https://api.github.com/repos/rubygems/rubygems/issues/863/labels{/name}","comments_url":"https://api.github.com/repos/rubygems/rubygems/issues/863/comments","events_url":"https://api.github.com/repos/rubygems/rubygems/issues/863/events","html_url":"https://github.com/rubygems/rubygems/issues/863","id":30078159,"number":863,"title":"UTF-8 error on Cygwin (under Windows)","user":{"login":"engelhro","id":7052132,"avatar_url":"https://avatars.githubusercontent.com/u/7052132?v=3","gravatar_id":"","url":"https://api.github.com/users/engelhro","html_url":"https://github.com/engelhro","followers_url":"https://api.github.com/users/engelhro/followers","following_url":"https://api.github.com/users/engelhro/following{/other_user}","gists_url":"https://api.github.com/users/engelhro/gists{/gist_id}","starred_url":"https://api.github.com/users/engelhro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/engelhro/subscriptions","organizations_url":"https://api.github.com/users/engelhro/orgs","repos_url":"https://api.github.com/users/engelhro/repos","events_url":"https://api.github.com/users/engelhro/events{/privacy}","received_events_url":"https://api.github.com/users/engelhro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rubygems/rubygems/labels/category%20-%20platform%20issues","name":"category - platform issues","color":"0b02e1"},{"url":"https://api.github.com/repos/rubygems/rubygems/labels/status%20-%20rejected","name":"status - rejected","color":"02d7e1"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2014-03-24T21:41:23Z","updated_at":"2015-03-13T12:41:36Z","closed_at":"2014-03-26T23:28:16Z","body":"Hi,\r\n\r\nI'm using Rubygems on Windows 8.x, installed into a Cygwin64 environment. After upgrading to Rubygems 2.2.0 (this also happens with 2.2.1 and 2.2.2), I receive the following error on certain commands like \"gem update\", \"gem command\" or \"gem query -r\":\r\n```\r\nERROR:  While executing gem ... (ArgumentError)\r\n    invalid byte sequence in UTF-8\r\n```\r\nSo my gems installation is broken. However, after manually downgrading (extracting the archive and running \"ruby setup.rb\") to Rubygems 2.1.1 or earlier everything works fine again. Any idea how to solve that? Is this an issue with Rubygems, or do I just need to adapt some settings? In the first case: which additional information do you need? Thanks for your help!"},"comment":{"url":"https://api.github.com/repos/rubygems/rubygems/issues/comments/78954107","html_url":"https://github.com/rubygems/rubygems/issues/863#issuecomment-78954107","issue_url":"https://api.github.com/repos/rubygems/rubygems/issues/863","id":78954107,"user":{"login":"FredWe","id":7354718,"avatar_url":"https://avatars.githubusercontent.com/u/7354718?v=3","gravatar_id":"","url":"https://api.github.com/users/FredWe","html_url":"https://github.com/FredWe","followers_url":"https://api.github.com/users/FredWe/followers","following_url":"https://api.github.com/users/FredWe/following{/other_user}","gists_url":"https://api.github.com/users/FredWe/gists{/gist_id}","starred_url":"https://api.github.com/users/FredWe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FredWe/subscriptions","organizations_url":"https://api.github.com/users/FredWe/orgs","repos_url":"https://api.github.com/users/FredWe/repos","events_url":"https://api.github.com/users/FredWe/events{/privacy}","received_events_url":"https://api.github.com/users/FredWe/received_events","type":"User","site_admin":false},"created_at":"2015-03-13T12:41:36Z","updated_at":"2015-03-13T12:41:36Z","body":"@renyan \r\n\r\nBy reading this->[Re: gem command broken on Cygwin 64 with Ruby 2.0.0p481](https://cygwin.com/ml/cygwin/2014-09/msg00098.html)the solution is Setting the encoding to \"BINARY\"\r\n\r\nI used this command `$ LANG=\"${LANG%%.*}.BINARY\" gem update`\r\nIt works."}}