Issue #6260 has been reported by perry (Perry Metzger).

----------------------------------------
Bug #6260: Relationship of collating sequence to === and <=> for Strings not documented
https://bugs.ruby-lang.org/issues/6260

Author: perry (Perry Metzger)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.3.0]


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.


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