From 6551a127b307eec1bf331a3cb31b8fdb0d4a0f92 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 28 Jul 2004 16:44:08 +0000 Subject: Changed the logic slightly to only match certain charsets if the locale 2004-07-26 Jeffrey Stedfast * camel-charset-map.c (camel_charset_best_mask): Changed the logic slightly to only match certain charsets if the locale matches (Macedonians don't want to use koi8-r for example). svn path=/trunk/; revision=26758 --- camel/camel-charset-map.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'camel/camel-charset-map.c') diff --git a/camel/camel-charset-map.c b/camel/camel-charset-map.c index 9bd4f4e253..dfa7b2402e 100644 --- a/camel/camel-charset-map.c +++ b/camel/camel-charset-map.c @@ -261,12 +261,19 @@ camel_charset_step (CamelCharset *c, const char *in, int len) static const char * camel_charset_best_mask(unsigned int mask) { + const char *locale_lang, *lang; int i; - - for (i=0;i