Project

General

Profile

Actions

Bug #20280

closed

Error at invalid encoding symbols

Bug #20280: Error at invalid encoding symbols

Added by nobu (Nobuyoshi Nakada) over 1 year ago. Updated over 1 year ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:116838]

Description

Parsing an invalid encoding symbol raises an EncodingError.
It must be a SyntaxError.

https://github.com/ruby/ruby/pull/10014

Updated by nobu (Nobuyoshi Nakada) over 1 year ago Actions #1

  • Description updated (diff)

Updated by nobu (Nobuyoshi Nakada) over 1 year ago Actions #2

  • Status changed from Open to Closed

Applied in changeset git|fcc55dc2261b4c61da711c10a5476d05d4391eca.


[Bug #20280] Raise SyntaxError on invalid encoding symbol

Updated by k0kubun (Takashi Kokubun) over 1 year ago Actions #3 [ruby-core:118056]

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?

Updated by k0kubun (Takashi Kokubun) over 1 year ago Actions #4

  • Status changed from Closed to Open

Updated by k0kubun (Takashi Kokubun) over 1 year ago Actions #5

  • Status changed from Open to Closed

Updated by k0kubun (Takashi Kokubun) over 1 year ago Actions #7 [ruby-core:118293]

  • Backport changed from 3.0: REQUIRED, 3.1: REQUIRED, 3.2: REQUIRED, 3.3: REQUIRED to 3.0: REQUIRED, 3.1: REQUIRED, 3.2: REQUIRED, 3.3: DONE

Updated by nagachika (Tomoyuki Chikanaga) over 1 year ago Actions #8 [ruby-core:118322]

  • Backport changed from 3.0: REQUIRED, 3.1: REQUIRED, 3.2: REQUIRED, 3.3: DONE to 3.1: REQUIRED, 3.2: WONTFIX, 3.3: DONE

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.

Actions

Also available in: PDF Atom