Project

General

Profile

Actions

Bug #20874

open

Difference in documentation for `irb -U` between `man irb` and `irb --help`

Added by kyanagi (Kouhei Yanagita) 13 days ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:119767]

Description

There is a difference in documentation for irb -U between man irb and irb --help.

  • man irb: Same as `ruby -U' . Sets the default value for internal encodings (Encoding.default_internal) to UTF-8.
  • irb --help: Set external and internal encodings to UTF-8.

Which is correct?

The implementation matches that of --help. However, it also seems to have been implemented with the intention of behaving the same as ruby -U.

No data to display

Actions

Also available in: Atom PDF

Like0