patch: fixes encoding problem with win32 application title

From: Jordi Mas (jmas@softcatala.org)
Date: Mon Sep 01 2003 - 14:16:19 EDT

  • Next message: Dom Lachowicz: "Re: patch: fixes encoding problem with win32 application title"

    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;
     }



    This archive was generated by hypermail 2.1.4 : Mon Sep 01 2003 - 14:30:36 EDT