On Sun, Jul 29, 2007 at 11:13:27AM +0200, Stefan Schimanski wrote:
>
> Am 29.07.2007 um 09:24 schrieb Enrico Forestieri:
>
> > Just reported as bug 4076:
> >
> > The math matrix dialog is broken on systems without support for
> > wchar_t, such as Windows (with both mingw and cygwin) and FreeBSD.
> > Whatever value is entered for the number of rows and columns, a 1x1
> > matrix is always generated.
> >
> > On cygwin, LyX hangs after generating the 1x1 matrix and one can only
> > Ctrl-C it, so this is major. However, after the Ctrl-C an emergency
> > save is performed.
> >
> > The bug is due to a missing locale facet and I am working on a patch.
>
> I have the same problem on Mac. The parsing of the math-matrix
> arguments always gives 1x1. If you have a patch, I will be happy to
> test it here.
Hmm, I doubt that this is the same case as I think that the Mac has
proper support for wchar_t, hasn't it?
My problem is due to the following line in InsetMathNest.cpp:
is >> m >> n >> v_align >> h_align;
where 'is' is an idocstringstream. The extraction fails because 'm'
and 'n' (number of rows and columns, respectively) are 'unsigned int'
and only a facet for 'int' is currently implemented.
--
Enrico