Project

General

Profile

Actions

Feature #12419

closed

Improve String#dump for Unicode output (from "\u{130}" to "\u0130")

Added by duerst (Martin Dürst) about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-core:75701]

Description

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.


Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #12275: String unescapeClosedtad (Tadashi Saito)Actions
Actions

Also available in: Atom PDF