2017-06-07 16:47 GMT+03:00 Ruslan Kabatsayev <[email protected]>:
> Not correct, not semantically. What Vim does is deliberately ignoring
> LC_COLLATE while grep acts according to this category which puts “ё”
> between “е” and “ж” like in the Russian alphabet.
>
> I'm not really sure that LC_COLLATE or even any LC_* influences this. Even
> if I unset all LC_* variables and set LC_ALL=en_US.UTF-8, I still get the
> expected behavior of grep and sed.

You need to set LC_COLLATE to some locale that uses cyrillic letters
on its own, *but has different alphabet* (specifically the one which
does not have “ё” between “а” and “я”). I do not know how libc authors
determine defaults for languages foreign to locale, but most likely
they just took DUCET (Default Unicode Collation Element Table) and
only altered needed locales, this is the intended DUCET usage after
all: (from http://unicode.org/reports/tr10/)

> Instead, the goal of DUCET is to provide a reasonable default ordering for 
> all scripts that are not tailored. Any characters used in the language of 
> primary interest for collation are expected to be tailored to meet all the 
> appropriate linguistic requirements for that language. For example, for a 
> user interested primarily in the Malayalam language, DUCET would be tailored 
> to get all details correct for the expected Malayalam collation order, while 
> leaving other characters (Greek, Cyrillic, Han, and so forth) in the default 
> order, because the order of those other characters is not of primary concern. 
> Conversely, a user interested primarily in the Greek language would use a 
> Greek-specific tailoring, while leaving the Malayalam (and other) characters 
> in their default order in the table.

>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
>
> --
> --
> You received this message from the "vim_dev" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui