Kornel Benko wrote:

> Am Mittwoch, 15. November 2006 16:24 schrieb Kornel Benko:
> ...
>> Maybe. I information about my environment may be interresting too.
>> For german (and ngerman) language I use  in lib/languages:
>> ...
>> german      german      "German"        false  iso8859-15  de_DE        
>> ""
>> ngerman ngerman "German (new spelling)" false  iso8859-15  de_DE        
>> "" ...
>> (because of the Euro-sign)
> 
> After changing this entries to "iso8859-1", there is no crash.

>From this I suspect that your iconv can't handle latin9. If that is true the
attached patch (which should go in anyway) should help, and you should also
see an error message on the console from iconv_open.
What I do not understand is why the german encoding plays a role. Does
Extended-insets.lyx contain german stuff?


Georg
Index: src/support/unicode.C
===================================================================
--- src/support/unicode.C	(Revision 15932)
+++ src/support/unicode.C	(Arbeitskopie)
@@ -52,9 +52,11 @@ IconvProcessor::IconvProcessor(char cons
 
 IconvProcessor::~IconvProcessor()
 {
-	if (iconv_close(pimpl_->cd) == -1) {
-		lyxerr << "Error returned from iconv_close("
-			<< errno << ")" << endl;
+	if (pimpl_->cd != invalid_cd) {
+		if (iconv_close(pimpl_->cd) == -1) {
+			lyxerr << "Error returned from iconv_close("
+			       << errno << ")" << endl;
+		}
 	}
 	delete pimpl_;
 }

Reply via email to