Enrico Forestieri <[EMAIL PROTECTED]> writes:

| On Sat, Oct 21, 2006 at 05:40:19PM +0200, Lars Gullik Bjønnes wrote:
| 
| > Abdelrazak Younes <[EMAIL PROTECTED]> writes:
| > 
| > | [EMAIL PROTECTED] wrote:
| > | > Author: larsbj
| > | > Date: Sat Oct 21 13:15:37 2006
| > | > New Revision: 15442
| > | > URL: http://www.lyx.org/trac/changeset/15442
| > | > Log:
| > | > Fix some unicode conversion problems, more work needed.
| > | 
| > | 
| > | >  void InsetMathExFunc::metrics(MetricsInfo & mi, Dimension & /*dim*/) 
const
| > | >  {
| > | >         // FIXME UNICODE
| > | > -       mathed_string_dim(mi.base.font, from_utf8(name_), dim_);
| > | > +       vector<char_type> n(name_.begin(), name_.end());
| > | > +       mathed_string_dim(mi.base.font, n, dim_);
| > | 
| > | What's wrong with from_utf8(). Georg said me that you are cheating by
| > | doing this automatic cast. Could you please elaborate?
| > 
| > It is not unidocde, it is some font internal encoding.
| 
| But you don't get what you expect. Using that conversion, when char is
| a signed type any value greater than 127 gets converted to an extremely
| large value as the most significant bit gets replicated.

'praps, but André is looking at this now.

-- 
        Lgb

Reply via email to