This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Regexps cyrillic locale-dependent inclusion


I checked various letters found on wikipedia [0].

My main system locale is fr_FR.UTF-8.

It goes from standard russian:

(string-match "[а-я]" "ё") => nil

grep '[а-я]' <<<'ё' => ё

LC_ALL=C grep '[а-я]' <<< 'ё' => ё

To very uncommon letters (only present in abkhaz (caucasian language), according wikipedia):

(string-match "[а-я]" "ҩ") => nil

grep '[а-я]' <<< 'ҩ' => ҩ

LC_ALL=C grep '[а-я]' <<<'ҩ' => nil

What is this difference? why a such difference?

[0] https://en.wikipedia.org/wiki/List_of_Cyrillic_letters


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]