ports/devel/rubygem-i18n/files/patch-bug-271420
Matthias Fechner d9c7bd9254 devel/rubygem-i18n: fix frozen string
With version v1.13.0 code was changed that returns a frozen string.
This breaks e.g. gitlab-ce on some pages.
Geoffrey Mainland (mainland@apeiron.net) pointed to the issue
logged upstream:
https://github.com/ruby-i18n/i18n/issues/658

PR:		271420
PR:		271356
Approved by:	sunpoet (maintainer)
2023-06-06 06:32:56 +03:00

11 lines
278 B
Text

--- lib/i18n/interpolate/ruby.rb.orig 2023-06-02 05:26:32 UTC
+++ lib/i18n/interpolate/ruby.rb
@@ -47,7 +47,7 @@ module I18n
end
end
- interpolated ? interpolated_string : string
+ interpolated ? interpolated_string : string.dup
end
end
end