Issue #12419 has been reported by Martin Drst.

----------------------------------------
Feature #12419: Improve String#dump for Unicode output (from "\u{130}" to "\u0130")
https://bugs.ruby-lang.org/issues/12419

* Author: Martin Drst
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
Currently, `"".dump` produces `"\u{130}\u{130}\u{130}"`.

This is rather suboptimal, `"\u0130\u0130\u0130"` is shorter and easier to read.

The only time \u{} notation should be used is when more than four hex digits are needed.



-- 
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>