mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-07 00:21:28 +03:00
src/search/regex.c (mc_search__regex_found_cond_one): convert GError message
to terminal charset. (mc_search__cond_struct_new_init_regex): likewise.
This commit is contained in:
parent
15e1db5157
commit
a93716386c
@ -228,7 +228,8 @@ mc_search__regex_found_cond_one (mc_search_t * mc_search,
|
||||
g_match_info_free (match_info);
|
||||
if (error) {
|
||||
mc_search->error = MC_SEARCH_E_REGEX;
|
||||
mc_search->error_str = g_strdup (error->message);
|
||||
mc_search->error_str = str_conv_gerror_message (error,
|
||||
_(" Regular expression error "));
|
||||
g_error_free (error);
|
||||
return COND__FOUND_ERROR;
|
||||
}
|
||||
@ -285,7 +286,7 @@ mc_search__cond_struct_new_init_regex (const char *charset, mc_search_t * mc_sea
|
||||
|
||||
if (error != NULL) {
|
||||
mc_search->error = MC_SEARCH_E_REGEX_COMPILE;
|
||||
mc_search->error_str = g_strdup (error->message);
|
||||
mc_search->error_str = str_conv_gerror_message (error, _(" Regular expression error "));
|
||||
g_error_free (error);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user