mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
If transliterations don't work in the system (eg. Solaris), don't allow
recode_transliterate setting to be enabled. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4082 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
5178a643bb
commit
342141fcb2
4 changed files with 25 additions and 9 deletions
|
|
@ -155,7 +155,16 @@ static void read_settings(void)
|
|||
char *old_term_charset = g_strdup(term_charset);
|
||||
char *old_recode_fallback = g_strdup(recode_fallback);
|
||||
char *old_recode_out_default = g_strdup(recode_out_default);
|
||||
|
||||
|
||||
if (settings_get_bool("recode_transliterate")) {
|
||||
/* check if transliterations are supported in this system */
|
||||
if (!is_valid_charset("ASCII")) {
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTERROR,
|
||||
TXT_CONVERSION_NO_TRANSLITS);
|
||||
settings_set_bool("recode_transliterate", FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
if (recode_fallback)
|
||||
g_free(recode_fallback);
|
||||
recode_fallback = g_strdup(settings_get_str("recode_fallback"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue