Ticket #2183: edit crash while opening some incorrect files.
commit7eb8f4030c6d7e8eda6549694ee0ddea596c8e19
authorAndrew Borodin <aborodin@vmail.ru>
Fri, 7 May 2010 14:42:27 +0000 (7 18:42 +0400)
committerAndrew Borodin <aborodin@vmail.ru>
Fri, 14 May 2010 07:10:10 +0000 (14 11:10 +0400)
tree47b3054e7ee90dce62172e146cc981e1a3ccfebd
parent73fbf38d46fa8db2da832402b40149778ef8857d
Ticket #2183: edit crash while opening some incorrect files.

The result of

touch 1.gz

is not a valid gzip'ed file. MCEditor crashes trying open it.

Changed initialization order of editor to init charset conversion
handler by non-zero value before open a file.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
src/editor/edit.c