Follow-up Comment #4, bug #18633 (project grep): Yes, when I first posted the 'bug' I hadn't realised that it was due to the collation order of en_GB.UTF-8. It is logical for grep to follow the collation order specified in the locale, so I appreciate it is not a bug.
Part of my confusion was due to other tools (such as sed, awk and vi), not using the collation order specified in the locale (although there is no reason that they should not do things differently). Also, whilst the significance of this is documented in http://www.gnu.org/software/grep/doc/grep_8.html#IDX178 there seems to be a lack of wider awareness of the issue (it seems to be generally assumed that [a-d] is equivalent to [abcd]). This is not a criticism of grep, but I don't think it can hurt to have this discussion as there must be other users who are unaware of their locale collation order and the implications of this on grep (tho perhaps this is the wrong place to have such a discussion!). Anyway, thanks for helping me come to a better understanding of grep and locale, and apologies for assuming it was a bug. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?18633> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
