Ticket #237 (closed Defect: fixed)

Opened 1 year ago

Last modified 9 months ago

current BM fails to build with wxWidgets unicode variant

Reported by: fthomas Assigned to: romw
Priority: Critical Milestone: Undetermined
Component: Manager Version:
Keywords: patch Cc:

Description

Hi,

Current BM fails to build with wxWidgets unicode variant under Debian with these errors:

SkinManager.cpp: In member function ‘bool CSkinManager::ReloadSkin(wxLocale*, wxString)’:
SkinManager.cpp:1210: error: cannot convert ‘const wxChar*’ to ‘const char*’ for argument ‘1’ to ‘FILE* fopen(const char*, const char*)’
SkinManager.cpp:1221: error: cannot convert ‘const wxChar*’ to ‘const char*’ for argument ‘1’ to ‘FILE* fopen(const char*, const char*)’
SkinManager.cpp:1232: error: cannot convert ‘const wxChar*’ to ‘const char*’ for argument ‘1’ to ‘FILE* fopen(const char*, const char*)’

SkinManager.cpp: In member function ‘int CSkinManager::Parse(MIOFILE&, wxString)’:
SkinManager.cpp:1346: error: no matching function for call to ‘match_tag(char [256], const wxChar*)’
../lib/parse.h:62: note: candidates are: bool match_tag(const char*, const char*)
../lib/parse.h:67: note:                 bool match_tag(const std::string&, const char*)
SkinManager.cpp:1355: error: no matching function for call to ‘match_tag(char [256], const wxChar*)’
../lib/parse.h:62: note: candidates are: bool match_tag(const char*, const char*)
../lib/parse.h:67: note:                 bool match_tag(const std::string&, const char*)

Something like the attached patch fixes the build failures.

Regards, Frank

Attachments

sg_unicode.patch (2.0 kB) - added by fthomas on 06/05/07 11:20:07.
sg_unicode.2.patch (1.8 kB) - added by fthomas on 06/06/07 01:47:50.
this new patch is much cleaner

Change History

06/05/07 11:20:07 changed by fthomas

  • attachment sg_unicode.patch added.

06/06/07 01:47:50 changed by fthomas

  • attachment sg_unicode.2.patch added.

this new patch is much cleaner

06/08/07 08:50:09 changed by romw

  • status changed from new to closed.
  • resolution set to fixed.

(In [12859]) - fixes #237 - current BM fails to build with wxWidgets

unicode variant

(Applied Frank Thomas's patch)

clientgui/

SkinManager?.cpp

10/20/07 17:28:57 changed by Nicolas

  • keywords set to patch.

If this page is incomplete or incorrect, please edit it or add it to the wiki to-do list. To do this, you must be logged in; click Login or Register above.