{"action":"created","issue":{"url":"https://api.github.com/repos/Shoes3/shoes3/issues/71","labels_url":"https://api.github.com/repos/Shoes3/shoes3/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/Shoes3/shoes3/issues/71/comments","events_url":"https://api.github.com/repos/Shoes3/shoes3/issues/71/events","html_url":"https://github.com/Shoes3/shoes3/issues/71","id":58216302,"number":71,"title":"RubyGems not working on command line cshoes","user":{"login":"BackOrder","id":8844578,"avatar_url":"https://avatars.githubusercontent.com/u/8844578?v=3","gravatar_id":"","url":"https://api.github.com/users/BackOrder","html_url":"https://github.com/BackOrder","followers_url":"https://api.github.com/users/BackOrder/followers","following_url":"https://api.github.com/users/BackOrder/following{/other_user}","gists_url":"https://api.github.com/users/BackOrder/gists{/gist_id}","starred_url":"https://api.github.com/users/BackOrder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BackOrder/subscriptions","organizations_url":"https://api.github.com/users/BackOrder/orgs","repos_url":"https://api.github.com/users/BackOrder/repos","events_url":"https://api.github.com/users/BackOrder/events{/privacy}","received_events_url":"https://api.github.com/users/BackOrder/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Shoes3/shoes3/labels/Windows","name":"Windows","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Shoes3/shoes3/milestones/2","labels_url":"https://api.github.com/repos/Shoes3/shoes3/milestones/2/labels","id":979314,"number":2,"title":"3.2.22","description":"","creator":{"login":"ccoupe","id":222691,"avatar_url":"https://avatars.githubusercontent.com/u/222691?v=3","gravatar_id":"","url":"https://api.github.com/users/ccoupe","html_url":"https://github.com/ccoupe","followers_url":"https://api.github.com/users/ccoupe/followers","following_url":"https://api.github.com/users/ccoupe/following{/other_user}","gists_url":"https://api.github.com/users/ccoupe/gists{/gist_id}","starred_url":"https://api.github.com/users/ccoupe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccoupe/subscriptions","organizations_url":"https://api.github.com/users/ccoupe/orgs","repos_url":"https://api.github.com/users/ccoupe/repos","events_url":"https://api.github.com/users/ccoupe/events{/privacy}","received_events_url":"https://api.github.com/users/ccoupe/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":1,"state":"open","created_at":"2015-02-14T08:39:58Z","updated_at":"2015-02-20T14:12:43Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2015-02-19T14:41:17Z","updated_at":"2015-02-20T14:12:43Z","closed_at":"2015-02-20T14:12:43Z","body":"RubyGems will not work properly on command line for non-English Windows systems due to the different codepage than an English Windows system (chcp 1252). The test scenario below shows that U+2019, which is **’** in Unicode, is raising the exception.\r\n\r\n**TEST SCENARIO**\r\n```\r\nC:\\Program Files (x86)\\Shoes>chcp\r\nPage de codes active : 437\r\n\r\nC:\\Program Files (x86)\\Shoes>cshoes -g outdated\r\nERROR:  While executing gem ... (Encoding::UndefinedConversionError)\r\n    U+2019 to IBM437 in conversion from UTF-16LE to UTF-8 to IBM437\r\nExiting RubyGems with exit_code 1\r\n```\r\n\r\n**WORKAROUND**\r\n```\r\nC:\\Program Files (x86)\\Shoes>chcp 1252\r\nPage de codes active : 1252\r\n\r\nC:\\Program Files (x86)\\Shoes>cshoes -g outdated\r\nbigdecimal (1.2.4 < 1.2.7)\r\nhpricot (0.8.1 < 0.8.6)\r\njson (1.8.1 < 1.8.2)\r\nminitest (4.7.5 < 5.5.1)\r\npsych (2.0.5 < 2.0.13)\r\nrake (10.1.0 < 10.4.2)\r\nrdoc (4.1.0 < 4.2.0)\r\ntest-unit (2.1.5.0 < 3.0.9)\r\n```\r\n\r\n**SOLUTION**\r\nThe following solution will default to en_US if an EncodingError is raised. Fully tested on 3.2.21 and working patch. https://bugs.ruby-lang.org/issues/10300#note-3\r\n"},"comment":{"url":"https://api.github.com/repos/Shoes3/shoes3/issues/comments/75243384","html_url":"https://github.com/Shoes3/shoes3/issues/71#issuecomment-75243384","issue_url":"https://api.github.com/repos/Shoes3/shoes3/issues/71","id":75243384,"user":{"login":"BackOrder","id":8844578,"avatar_url":"https://avatars.githubusercontent.com/u/8844578?v=3","gravatar_id":"","url":"https://api.github.com/users/BackOrder","html_url":"https://github.com/BackOrder","followers_url":"https://api.github.com/users/BackOrder/followers","following_url":"https://api.github.com/users/BackOrder/following{/other_user}","gists_url":"https://api.github.com/users/BackOrder/gists{/gist_id}","starred_url":"https://api.github.com/users/BackOrder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BackOrder/subscriptions","organizations_url":"https://api.github.com/users/BackOrder/orgs","repos_url":"https://api.github.com/users/BackOrder/repos","events_url":"https://api.github.com/users/BackOrder/events{/privacy}","received_events_url":"https://api.github.com/users/BackOrder/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T14:12:43Z","updated_at":"2015-02-20T14:12:43Z","body":"I do not normally install those test but rather extract them to a temporary directory on my primary Windows machine to avoid breaking the existing Shoes and/or installing reinstalling cycle. Shoes behaves just fine in the past times and allowed me to test whatever needs to be tested.\r\n\r\nIn this instance, this is causing two problems for RubyGems — 1) outdated command returns nothing and 2) SSL certificate issue. This may have other important consequences, say, what happens if Shoes is installed in a custom directory?\r\n\r\nTightmingw works as far as portable installation. A distinctive difference emerged between tightmingw and your build: libffi-6.dll vs libffi-5.dll. Your build provides an older ffi library.\r\n\r\n> NOTE the change in name from ...gtk2-32.exe to ...gtk2-w32.exe - could that cause a caching problem for you?\r\n\r\nMaybe. Not big fan of the new w considering that it is not Windows standard practice. An EXE file with 32 means a 32 bit executable for Windows.\r\n\r\n**Installing on Windows 8 works** (patch, outdated, SSL certificate) and it would close this issue."}}