[ruby-core:73398] [Ruby trunk - Feature #12016] [Open] More informative error message when Symbol encoding is invalid

From: alexinbeijing@...
Date: 2016-01-25 06:21:43 UTC
List: ruby-core #73398
Issue #12016 has been reported by Alex Dowad.

----------------------------------------
Feature #12016: More informative error message when Symbol encoding is invalid
https://bugs.ruby-lang.org/issues/12016

* Author: Alex Dowad
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
When a symbol literal is invalid in the source file's encoding, an `EncodingError` exception is raised, with the following message: `invalid encoding symbol`. This patches the interpreter so a more informative message is generated, similar to: 
`encoding UTF-8 is invalid for symbol :"\xC7"`.

Here is where this originated from: https://github.com/whitequark/parser/issues/252

---Files--------------------------------
patch_symbol_encoding_error_msg.diff (547 Bytes)
patch_symbol_encoding_error_msg.diff (547 Bytes)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next