Re: patch: fixes encoding problem with win32 application title

From: Dom Lachowicz (domlachowicz@yahoo.com)
Date: Mon Sep 01 2003 - 14:47:33 EDT

  • Next message: Jordi Mas: "Re: patch: fixes encoding problem with win32 application title"

    This looks acceptable, at least until we use Unicows.

    Please commit.

    Dom

    --- Jordi Mas <jmas@softcatala.org> wrote:
    > This fixes encoding problem with win32 application
    > title. Someone was assuming
    > again that win32 can display directly UTF8. Thanks.
    >
    >
    >
    > --
    >
    > Jordi Mas i Hern�ndez - Abiword developer -
    > http://www.abisource.com
    > jmas@softcatala.org - Softcatal� member -
    > http://www.softcatala.org
    > - Personal Homepage
    > http://www.softcatala.org/~jmas
    > > Index: src/af/xap/win/xap_Win32FrameImpl.cpp
    >
    ===================================================================
    > RCS file:
    > /cvsroot/abi/src/af/xap/win/xap_Win32FrameImpl.cpp,v
    > retrieving revision 1.32
    > diff -u -r1.32 xap_Win32FrameImpl.cpp
    > --- src/af/xap/win/xap_Win32FrameImpl.cpp 25 Aug
    > 2003 13:28:44 -0000 1.32
    > +++ src/af/xap/win/xap_Win32FrameImpl.cpp 1 Sep 2003
    > 18:25:30 -0000
    > @@ -36,6 +36,7 @@
    > #include "xap_Prefs.h"
    > #include "ie_impGraphic.h"
    > #include "fv_View.h"
    > +#include "ap_Win32App.h"
    >
    > #ifdef _MSC_VER
    > #pragma warning(disable: 4355) // 'this' used in
    > base member initializer list
    > @@ -156,7 +157,7 @@
    > sTmp += " - ";
    > sTmp +=
    > XAP_App::getApp()->getApplicationTitleForTitleBar();
    >
    > - SetWindowText(m_hwndFrame, sTmp.c_str());
    > + SetWindowText(m_hwndFrame,
    >
    (AP_Win32App::s_fromUTF8ToAnsi(sTmp.c_str())).c_str());
    >
    > return true;
    > }
    >

    __________________________________
    Do you Yahoo!?
    Yahoo! SiteBuilder - Free, easy-to-use web site design software
    http://sitebuilder.yahoo.com



    This archive was generated by hypermail 2.1.4 : Mon Sep 01 2003 - 14:59:55 EDT