Ticket #1543: Case-insensitive regex search with [^ranges] does not work correctly
commit7dd9fdd505f63bc1e6dd6cafbd69b8b52bc20747
authorSlava Zanko <slavazanko@gmail.com>
Mon, 24 Aug 2009 11:00:14 +0000 (24 14:00 +0300)
committerSlava Zanko <slavazanko@gmail.com>
Mon, 24 Aug 2009 12:00:53 +0000 (24 15:00 +0300)
tree52ad896aa626a5cc8e63b0f1d13e0c29a06535f2
parentb819359535fca86f04dd40b7e00f73ad9d2b82b1
Ticket #1543: Case-insensitive regex search with [^ranges] does not work correctly

Fixed Case-isentetive search with [ranges].

Reason of bug:

content_pattern was initialized via str_create_search_needle() function (from src/strutils.c)
This function convert string to lowercase if case_sentitive is off. Therefore string
'some_string[^a-zA-Z]' was transform into 'some_string[^a-za-z]'

Fix issue:

replace call of str_create_search_needle() function to g_strdup()

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
src/find.c