Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/Homebrew/brew.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
  1. Jun 11, 2014
  2. Jun 10, 2014
  3. Jun 09, 2014
    • Jack Nagel's avatar
      Just access the ivar directly · fb3f9592
      Jack Nagel authored
      fb3f9592
    • Jack Nagel's avatar
      Work around encoding issue in Pathname#inspect on Ruby 2.0 · d27dc1d0
      Jack Nagel authored
      Pathname#inspect on Ruby 2.0 throws away the encoding of the object's
      underlying string and returns a string tagged as ASCII-8BIT.
      
      If you simply write
      
        puts Pathname.new("some string with non-ascii bytes").inspect
      
      no error will be raised, because the implementation of Pathname#inspect
      does not call into Object#inspect.
      
      However, if you wrap that pathname object in an array first, then
      
        puts [Pathname.new("some string with non-ascii bytes")].inspect
      
      will raise Encoding::CompatibilityError: "inspected result must be ASCII
      only or use the same encoding with default external".
      
      Raising an error in this codepath is new in Ruby 2.0, and this specific
      bug is fixed in Ruby 2.1. I've opened a bug upstream:
        https://bugs.ruby-lang.org/issues/9915
      
      Fixes Homebrew/homebrew#29947.
      d27dc1d0
  4. Jun 08, 2014
  5. Jun 07, 2014
Loading