From 9dfe1ed0703ab2b933c3d41ce0a9a4c6b2205ac7 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Fri, 25 Jun 2010 14:39:36 +0400 Subject: [PATCH] Ticket #2248: mcedit: don't try set codepage again after file load. Signed-off-by: Andrew Borodin --- src/editor/edit.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/editor/edit.c b/src/editor/edit.c index 9c27b7eb1..aa94665e7 100644 --- a/src/editor/edit.c +++ b/src/editor/edit.c @@ -741,9 +741,6 @@ edit_load_file (WEdit * edit) } else { -#ifdef HAVE_CHARSET - const char *codepage_id; -#endif edit->last_byte = 0; if (*edit->filename) { @@ -755,12 +752,6 @@ edit_load_file (WEdit * edit) } edit->stack_disable = 0; } - -#ifdef HAVE_CHARSET - codepage_id = get_codepage_id (source_codepage); - if (codepage_id) - edit->utf8 = str_isutf8 (codepage_id); -#endif } edit->lb = LB_ASIS; return 0;