Enrico Forestieri wrote: > On Sun, Jul 08, 2007 at 02:13:41AM +0900, Koji Yokota wrote: > >> Hi, >> >> Only recently lyx-svn begins to crash when I open some of menus on a >> FreeBSD machine (I confirmed on revision 19004). Is this only a >> temporary phenomenon to be fixed soon? If so, please neglect this mail. >> >> Lyx crashes, for example, when I open Tools -> Preferences, with error >> messages: >> >> > LyXFunc::dispatch: cmd: action: 225 arg: 'prefs' x: 0 y: 0 >> > Setting controller ro: 1 >> > Transition from state INITIAL to state INITIAL after input >> > SMI_READ_ONLY Calling BC refresh() >> > addCategory n= User interface parent= >> > addCategory n= Look and feel parent= >> > addCategory n= Screen fonts parent= >> > addCategory n= Colors parent= >> > addCategory n= Graphics parent= >> > addCategory n= Keyboard parent= >> > addCategory n= Paths parent= >> > addCategory n= Identity parent= >> > terminate called after throwing an instance of 'std::bad_cast' >> > what(): St8bad_cast >> > Abort. > > This is another consequence of http://www.lyx.org/trac/changeset/18988. > Try whether reverting that changeset helps. > > I think that the problem here is a missing locale facet.
Wild guess: does the following helps? A/
Index: frontends/controllers/frontend_helpers.cpp =================================================================== --- frontends/controllers/frontend_helpers.cpp (revision 19003) +++ frontends/controllers/frontend_helpers.cpp (working copy) @@ -1108,7 +1108,7 @@ LanguagePair, bool> { public: - Sorter() : loc_("") {}; + Sorter() : loc_() {}; bool operator()(LanguagePair const & lhs, LanguagePair const & rhs) const { return loc_(lhs.first, rhs.first);