From f77e7723bace24c806f11ba7011a4b8d3937a558 Mon Sep 17 00:00:00 2001 From: eidheim Date: Wed, 18 Nov 2015 17:51:58 +0100 Subject: [PATCH] Spellcheck encoding is now always utf-8. --- src/source.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/source.cc b/src/source.cc index c634aa3..2992f0d 100644 --- a/src/source.cc +++ b/src/source.cc @@ -371,8 +371,10 @@ void Source::View::configure() { note_tag->property_foreground()=style->property_foreground(); } - if(Singleton::config->source.spellcheck_language.size()>0) + if(Singleton::config->source.spellcheck_language.size()>0) { aspell_config_replace(spellcheck_config, "lang", Singleton::config->source.spellcheck_language.c_str()); + aspell_config_replace(spellcheck_config, "encoding", "utf-8"); + } spellcheck_possible_err=new_aspell_speller(spellcheck_config); if(spellcheck_checker!=NULL) delete_aspell_speller(spellcheck_checker);