Project

General

Profile

Actions

Feature #6260

closed

Relationship of collating sequence to === and <=> for Strings not documented

Added by perry (Perry Metzger) about 12 years ago. Updated over 11 years ago.

Status:
Rejected
Target version:
-
[ruby-core:44139]

Description

Collating sequences are mentioned in the documentation for the class String only in reference to the "succ" method, and only in passing. It appears that Ruby also pays attention to collating sequences in range membership testing, possibly even elsewhere. It would be very nice if the precise behavior was documented.

Also, given that at least "succ" knows about collating sequences, it would be nice if the documentation explained how collating sequences are derived. Is language specific ordering in use? If so, where is the language determined? Does it in any way involve the language specified in the LANG environment variable or does it come from somewhere else? None of this is explained in the documentation.

Actions

Also available in: Atom PDF

Like0
Like0Like0