mc/lib/search
Andrew Borodin 66da276200 Ticket 3069: fix of case-sensitive search
...if file encoding and locale are different.

Example: locale is KOI8-R, file encoding is UTF-8. Note: those encodings
are not same.

File content is following (in Russian):

йцукен
Йцукен

The difference is in first line char only: Й (lowercase letter) and й
(uppercase letter).  The search of Ê gives the result Й independently of
case sensitivity. й isn't found.
If switch "All charsets" on, nothing is found.

The main idea of fix is modification of search API to allow set of search
pattern charset and use if within search engine.
Old API:
mc_search_new (pattern, pattern_len);
New API:
mc_search_new (pattern, pattern_len, pattern_charset);

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-09-21 13:35:31 +04:00
..
glob.c Code indentation. 2013-02-14 14:42:27 +04:00
hex.c Core, mceditor, mcviewer and mcdiffviewer code tweak and cleanup 2012-06-25 16:58:57 +04:00
internal.h Don't mix mc_search_cb_ret_t and int as result of search callback. 2012-05-08 18:57:55 +04:00
lib.c Ticket 3069: fix of case-sensitive search 2013-09-21 13:35:31 +04:00
Makefile.am PCRE_CFLAGS are CPPFLAGS, actually. 2012-12-18 16:27:49 +04:00
normal.c Core, mceditor, mcviewer and mcdiffviewer code tweak and cleanup 2012-06-25 16:58:57 +04:00
regex.c Parenthesis around some -1. 2012-12-20 15:35:35 +04:00
search.c Ticket 3069: fix of case-sensitive search 2013-09-21 13:35:31 +04:00