On Sat, Jul 07, 2007 at 08:37:15PM +0200, Enrico Forestieri wrote: > On Sun, Jul 08, 2007 at 03:29:46AM +0900, Koji Yokota wrote: > > > but crash also happens when I start it with > > > > > env LC_ALL=C lyx > > > > In this case, there are no such complaints. > > Yes, the C locale is always supported. The crash is due to missing > support for wchar_t, meaning that even the C locale can't deal with > wide characters. Please try the patch I sent you.
Strange. I still don't see on the list the mail with the patch, so I am resending it attached here. -- Enrico
Index: src/frontends/controllers/frontend_helpers.cpp =================================================================== --- src/frontends/controllers/frontend_helpers.cpp (revision 19004) +++ src/frontends/controllers/frontend_helpers.cpp (working copy) @@ -1111,7 +1111,11 @@ public: Sorter() : loc_("") {}; bool operator()(LanguagePair const & lhs, LanguagePair const & rhs) const { +#if !defined(USE_WCHAR_T) && defined(__GNUC__) + return loc_(to_local8bit(lhs.first), to_local8bit(rhs.first)); +#else return loc_(lhs.first, rhs.first); +#endif } private: std::locale loc_;