On Tue, Oct 03, 2006 at 02:29:13PM +0200, Georg Baum wrote:
> Am Montag, 2. Oktober 2006 19:42 schrieb Enrico Forestieri:

> > Please attached find the bt's I get on linux and solaris. I use GCC 3.4.4
> > on cygwin, GCC 3.4.3 on solaris, and GCC 4.1.2 on linux (debian/testing).
> > I get the crash immediately at start on linux, but only after trying to
> > load a file (or even File->New) on cygwin and solaris (this must be
> > related to the GCC version).
> 
> It could also depend on autoloading of docs.

Doh! You're right, it was crashing trying to load splash.lyx.

> > The bt's on linux and solaris point to the same problem but I am lost
> > here as I am not able to interpret what is happening :(
> 
> That would need to fire up the debugger and step through. I forgot that the 
> interesting methods do not show up in the backtrace, because they are 
> inlined.
> 
> The attached patch should fix the problem. As you can see I throw an 
> exception for all non-ASCII characters (with a meaningful name, so that 
> you know what happened even without a debugger), but so far I was not able 
> to trigger it. If one of these exceptions gets triggered then it becomes 
> interesting, but I believe that it is possible with moderate effort to 
> extend it to all code points in a 2byte wchar_t.

Success!

I had to add an "#include <locale>" to docstring.C to let it compile
on cygwin and then it worked. Well spotted, Georg ;-)

Please commit it as I think that it also solves the problem for mingw.

-- 
Enrico

Reply via email to