Created
          August 13, 2015 01:00 
        
      - 
      
 - 
        
Save sunaot/6bfbb9adbda365b9d404 to your computer and use it in GitHub Desktop.  
    adhoc patch to ~/.heroku/client/lib/heroku/client/rendezvous.rb
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | private | |
| def fixup(data) | |
| return nil if ! data | |
| return_data = output.isatty ? data : data.gsub(/\cM/,"") | |
| if return_data.respond_to?(:force_encoding) | |
| return_data.force_encoding('utf-8') if return_data.respond_to?(:force_encoding) | |
| end | |
| if running_on_windows? | |
| begin | |
| return_data.gsub!(/\e\[[\d;]+m/, '') | |
| rescue # ignore failed gsub, for instance when non-utf8 | |
| end | |
| end | |
| return_data | |
| end | |
| end | |
| # ~/.heroku/client/lib/heroku/client/rendezvous.rb:[utf-8][unix] | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
diff -u 形式