aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/pathname.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 01746f770..018877e84 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -428,7 +428,7 @@ class Pathname
# https://bugs.ruby-lang.org/issues/9915
prepend Module.new {
def inspect
- super.force_encoding(instance_variable_get(:@path).encoding)
+ super.force_encoding(@path.encoding)
end
}
end