ActionsLike0
Bug #20280
closedError at invalid encoding symbols
Description
Parsing an invalid encoding symbol raises an EncodingError
.
It must be a SyntaxError
.
ActionsLike0
Added by nobu (Nobuyoshi Nakada) about 1 year ago. Updated 11 months ago.
Description
Parsing an invalid encoding symbol raises an EncodingError
.
It must be a SyntaxError
.
Applied in changeset git|fcc55dc2261b4c61da711c10a5476d05d4391eca.
[Bug #20280] Raise SyntaxError on invalid encoding symbol
The diff seems to conflict with refactoring changes that are missing in ruby_3_3
. Could you file a backport PR to ruby_3_3
branch?
I opened a PR for backport to 3.3: https://github.com/ruby/ruby/pull/10967
ruby_3_3 4c50d23245689761e04db450ced9fe9fa76997d0.
SyntaxErro isn't a descendant of StandardError and cannot be caught with rescue clause without explicit exception class specification. I won't backport this to 3.2 until any real world application suffered from this issue.