Author Topic: html build log, wrong encoding ??  (Read 2880 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5386
html build log, wrong encoding ??
« on: December 25, 2008, 06:02:27 pm »
Anyone who can confirm the following issue, or who has ideas how to fix ?

Environment : revision of today, linux 32 bit.

In the log window of CB :

Quote
/home/lieven/Projects/view_vipnt_buildserver/vipnt/AngleSvd/src/AngleSvd.cpp: In member function ‘virtual vipnt::TRAF_ERROR vipnt::CAngleSvdAlgo::Run()’:
/home/lieven/Projects/view_vipnt_buildserver/vipnt/AngleSvd/src/AngleSvd.cpp:464: warning: switch missing default case

in in the html log :
Quote
/home/lieven/Projects/view_vipnt_buildserver/vipnt/AngleSvd/src/AngleSvd.cpp: In member function ‘virtual vipnt::TRAF_ERROR vipnt::CAngleSvdAlgo::Run()’:
/home/lieven/Projects/view_vipnt_buildserver/vipnt/AngleSvd/src/AngleSvd.cpp:464: warning: switch missing default case

Seems we have issues with the ´  ...

In the html itself (so not shown by browser : firefox), we see :
Quote
/home/lieven/Projects/view_vipnt_buildserver/vipnt/AngleSvd/src/AngleSvd.cpp: In member function ‘virtual vipnt::TRAF_ERROR vipnt::CAngleSvdAlgo::Run()’:<br />


Possible solution : before sending the text to the html file, look for the ´ and especially encode it, or replace all it by "
 or '

What do you think ?
« Last Edit: December 25, 2008, 06:14:58 pm by killerbot »

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5386
Re: html build log, wrong encoding ??
« Reply #1 on: December 26, 2008, 12:02:46 am »
my solution would be :
in compilergcc.cpp : LogMessage

Code
        // replace the ´ family by "
wxString Quoted = message;
Quoted.Replace(_("‘"), _("\""), true);
Quoted.Replace(_("’"), _("\""), true);
        m_BuildLogContents << Quoted;

In case there are no objections I would commit this tomorrow.