[Kazehakase-cvs] CVS update: kazehakase/module/search

Back to archive index

Hiroyuki Ikezoe ikezo****@users*****
Wed Dec 6 16:40:05 JST 2006


Index: kazehakase/module/search/kz-search-hyper-estraier.c
diff -u kazehakase/module/search/kz-search-hyper-estraier.c:1.19 kazehakase/module/search/kz-search-hyper-estraier.c:1.20
--- kazehakase/module/search/kz-search-hyper-estraier.c:1.19	Wed Dec  6 16:28:49 2006
+++ kazehakase/module/search/kz-search-hyper-estraier.c	Wed Dec  6 16:40:04 2006
@@ -543,7 +543,7 @@
 		else
 		{
 			gchar *uri, *contents;
-			gchar *encoding;
+			gchar *encoding = NULL;
 			GTime mtime;
 			struct stat st;
 
@@ -553,6 +553,8 @@
 			uri = create_uri_from_filename(new_path + strlen("file://") + priv->cache_path_len);
 
 			encoding = get_document_encoding(contents);
+			if (!encoding)
+				encoding = g_strdup(est_enc_name(contents, strlen(contents), ESTLANGJA));
 	
 			if (encoding && strcmp(encoding, "UTF-8"))
 			{


More information about the Kazehakase-cvs mailing list
Back to archive index