id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
1942	mc crashes on exit when using C locale	mcermak	andrew_b	"Starting mc with:
LANG=C mc
cases a crash when mc exits. No other LC_* variable was set.

The issue is in src/strutil.c module. With C locale, str_init_strings() fails to set str_cnv_not_convert variable leaving it with value -1 (INVALID_CONV). str_uninit_strings() passes str_cnv_not_convert blindly to g_iconv_close() which tries to dereference it.
Attached patch adds a check to str_uninit_strings() if str_cnv_not_convert value is valid."	defect	closed	major	4.7.1	mc-core	4.7.0.1	fixed	crash					committed-master
