mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
replace islower to g_ascii_islower
replace tolower to g_ascii_tolower
This commit is contained in:
parent
5be16e2a0b
commit
87a891a54c
@ -513,7 +513,7 @@ edit_init (WEdit *edit, int lines, int columns, const char *filename,
|
||||
option_whole_chars_search);
|
||||
|
||||
for (i = 1; i <= sizeof (option_whole_chars_search_buf); i++) {
|
||||
if (islower (i) && !strchr (option_whole_chars_search, i)) {
|
||||
if (g_ascii_islower ((gchar) i) && !strchr (option_whole_chars_search, i)) {
|
||||
option_whole_chars_search_buf[len++] = i;
|
||||
}
|
||||
}
|
||||
@ -1687,7 +1687,7 @@ my_type_of (int c)
|
||||
}
|
||||
if (isupper (c))
|
||||
c = 'A';
|
||||
else if (islower (c))
|
||||
else if (g_ascii_islower ((gchar) c))
|
||||
c = 'a';
|
||||
else if (g_ascii_isalpha (c))
|
||||
c = 'a';
|
||||
|
@ -90,7 +90,7 @@ static unsigned char *edit_get_block (WEdit *edit, long start,
|
||||
|
||||
static inline int my_lower_case (int c)
|
||||
{
|
||||
return tolower(c & 0xFF);
|
||||
return g_ascii_tolower ((gchar)c & 0xFF);
|
||||
}
|
||||
|
||||
static const char *
|
||||
|
Loading…
Reference in New Issue
Block a user