Jürgen Spitzmüller wrote: > Richard Heck wrote: > >> I've been studying this bug a bit and think I know where the problem is, >> more or less. The attached file is as minimal as I can get it. The >> change of font is crucial. Without it, there is no crash. >> > I think the real problem is really just the view-source widget requesting an > invalid encoding change. This whole bug only occurs if that widget is open, > with some debug output, you can see that the encodings involved are bogus. > Yes, you're right. I'm trying to figure out then why the encoding change is invalid then. This is happening on the update after ControlDocument::dispatchParams() has called setLanguage() and before the other stuff has happened. So there's something that hasnt' happened then that needs to happen. What?
It seems that the problem is that, when the update happens and view source is open oldEnc is Encoding::inputenc, whereas it is Encoding::CJK when you do a normal LaTeX export later. This is ultimately coming from Buffer::params(). So it looks like the answer to my question is that the buffer params haven't been updated at this point, and that is what is causing the invalid output. Richard -- ================================================================== Richard G Heck, Jr Professor of Philosophy Brown University http://frege.brown.edu/heck/ ================================================================== Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto