mc/lib/filehighlight
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
..
common.c Ticket 1551: Update GPL version from 2 to 3 2011-10-18 14:08:34 +03:00
get-color.c Rename type file_entry to the file_entry_t. 2013-09-19 16:22:30 +04:00
ini-file-read.c Ticket 3069: fix of case-sensitive search 2013-09-21 13:35:31 +04:00
internal.h Clean up some empty lines. 2010-11-24 10:27:46 +03:00
Makefile.am PCRE_CFLAGS are CPPFLAGS, actually. 2012-12-18 16:27:49 +04:00