{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/41640","labels_url":"https://api.github.com/repos/Homebrew/homebrew/issues/41640/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/41640/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/41640/events","html_url":"https://github.com/Homebrew/homebrew/issues/41640","id":94596972,"number":41640,"title":"Error: invalid byte sequence in UTF-8","user":{"login":"marcusguttenplan","id":5815853,"avatar_url":"https://avatars.githubusercontent.com/u/5815853?v=3","gravatar_id":"","url":"https://api.github.com/users/marcusguttenplan","html_url":"https://github.com/marcusguttenplan","followers_url":"https://api.github.com/users/marcusguttenplan/followers","following_url":"https://api.github.com/users/marcusguttenplan/following{/other_user}","gists_url":"https://api.github.com/users/marcusguttenplan/gists{/gist_id}","starred_url":"https://api.github.com/users/marcusguttenplan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcusguttenplan/subscriptions","organizations_url":"https://api.github.com/users/marcusguttenplan/orgs","repos_url":"https://api.github.com/users/marcusguttenplan/repos","events_url":"https://api.github.com/users/marcusguttenplan/events{/privacy}","received_events_url":"https://api.github.com/users/marcusguttenplan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-12T20:30:00Z","updated_at":"2015-07-12T20:31:28Z","closed_at":null,"body":"Hello,\r\n\r\nI'm sorry to open an issue for what looks like a common problem but I have been cracking my teeth on this for days now.\r\n\r\nBrew doctor throws the Error: invalid byte sequence in UTF-8 with:\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:44:in `=~'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:44:in `chop_basename'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:338:in `plus'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:331:in `+'\r\n/usr/local/Library/Homebrew/extend/pathname.rb:295:in `resolved_path_exists?'\r\n/usr/local/Library/Homebrew/cmd/doctor.rb:241:in `block (2 levels) in check_for_broken_symlinks'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:543:in `block in find'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/find.rb:43:in `block in find'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/find.rb:42:in `catch'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/find.rb:42:in `find'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:543:in `find'\r\n/usr/local/Library/Homebrew/cmd/doctor.rb:240:in `block in check_for_broken_symlinks'\r\n/usr/local/Library/Homebrew/cmd/doctor.rb:239:in `each'\r\n/usr/local/Library/Homebrew/cmd/doctor.rb:239:in `check_for_broken_symlinks'\r\n/usr/local/Library/Homebrew/cmd/doctor.rb:1258:in `block in doctor'\r\n/usr/local/Library/Homebrew/cmd/doctor.rb:1256:in `each'\r\n/usr/local/Library/Homebrew/cmd/doctor.rb:1256:in `doctor'\r\n/usr/local/Library/brew.rb:124:in `<main>'\r\n\r\nFirst, I checked the path looking for strange characters. This was the output:\r\n\r\n/usr/local/bin:/usr/local/sbin:/usr/local/heroku/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin:/usr/local/MacGPG2/bin\r\n\r\nI found a broken symlink in my ruby.frameworks from Current to 1.8 and fixed that, but the problem persisted. I've gone through every issue and attempted many fixes, but none seem to work. I also fully reinstalled the essential.pkg from the Yosemite installer, hoping to replace ruby and any other development-related changes that could have been made in the last few years, but that didn't help either.\r\n\r\nHere is the output of brew --config:\r\n\r\nHOMEBREW_VERSION: 0.9.5\r\nORIGIN: https://github.com/Homebrew/homebrew\r\nHEAD: a9d599bf799bb898150d13b073541a2821409b49\r\nLast commit: 2 hours ago\r\nHOMEBREW_PREFIX: /usr/local\r\nHOMEBREW_CELLAR: /usr/local/Cellar\r\nHOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com\r\nCPU: 8-core 64-bit ivybridge\r\nOS X: 10.10.4-x86_64\r\nXcode: 6.4\r\nCLT: 6.4.0.0.1.1435007323\r\nClang: 6.1 build 602\r\nMacPorts/Fink: /opt/local/bin/port\r\nX11: 2.7.7 => /opt/X11\r\nSystem Ruby: 2.0.0-p481\r\nPerl: /opt/local/bin/perl => /opt/local/bin/perl5.16\r\nPython: /usr/bin/python => /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7\r\nRuby: /usr/bin/ruby\r\nJava: 1.8.0_45\r\n\r\n\r\nAnd my environment:\r\n\r\nTERM_PROGRAM=Apple_Terminal\r\nSHELL=/bin/bash\r\nTERM=xterm-256color\r\nTMPDIR=/var/folders/l4/lgvz2_w56ml52f35zhmlhgwh0000gn/T/\r\nApple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.5tDsmG0iTy/Render\r\nTERM_PROGRAM_VERSION=343.7\r\nTERM_SESSION_ID=0727783D-6A7C-490B-A334-80B231E8E916\r\nUSER=xxxx\r\nSSH_AUTH_SOCK=/private/tmp/com.apple.launchd.5GlRyo6mnC/Listeners\r\n__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0\r\nPATH=/usr/local/bin:/usr/local/sbin:/usr/local/heroku/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin:/usr/local/MacGPG2/bin\r\nPWD=/usr/local\r\nLANG=en_US.UTF-8\r\nXPC_FLAGS=0x0\r\nXPC_SERVICE_NAME=0\r\nSHLVL=1\r\nHOME=/Users/xxxxxxx\r\nLOGNAME=xxxxxx\r\nDISPLAY=/private/tmp/com.apple.launchd.wFAxs8HiE6/org.macosforge.xquartz:0\r\n_=/usr/bin/env\r\nOLDPWD=/usr/local/Library/Homebrew\r\n\r\n\r\nThank you for your help!! It is much appreciated."},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/comments/120759709","html_url":"https://github.com/Homebrew/homebrew/issues/41640#issuecomment-120759709","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/41640","id":120759709,"user":{"login":"DomT4","id":6998367,"avatar_url":"https://avatars.githubusercontent.com/u/6998367?v=3","gravatar_id":"","url":"https://api.github.com/users/DomT4","html_url":"https://github.com/DomT4","followers_url":"https://api.github.com/users/DomT4/followers","following_url":"https://api.github.com/users/DomT4/following{/other_user}","gists_url":"https://api.github.com/users/DomT4/gists{/gist_id}","starred_url":"https://api.github.com/users/DomT4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DomT4/subscriptions","organizations_url":"https://api.github.com/users/DomT4/orgs","repos_url":"https://api.github.com/users/DomT4/repos","events_url":"https://api.github.com/users/DomT4/events{/privacy}","received_events_url":"https://api.github.com/users/DomT4/received_events","type":"User","site_admin":false},"created_at":"2015-07-12T20:31:28Z","updated_at":"2015-07-12T20:31:28Z","body":"Similar issue to #41632. Hmm.\r\n\r\nCan you do `cd $(brew --prefix) && git status` and see if there's any uncommitted modifications and then a `brew readall`?"}}