jens : thank you!
I have done this test.
after this patch C::B work well with the "SPACE " char in the filename or path. I click the link text,the "HTML Viewer" tool was shown by c::b. If the log's context include Chinese char, it show good well.
But if the Project file's name include Chinese char, then the "HTML Viewer" didn't shown after I click the link text, I copy and past into the Brower(FF or IE)'s address box. Browers can't open the html_log_file also. IE will say "Windows can not found “file://C:%5cDocuments%20and%20Settings%5cZhuangYanDell%5cMy%20Documents%5cCodeBlocks%20Projects%5c%2d%87%e5%0b%0d%57%5c%2d%87%e5%0b%0d%57_build_log.html” ...
I guess :
1, Windows XP (Chinese version) encoded Filename by GBK default.
2, So, in the C::B's memory , the FileName encoded by GBK also.
3, the function : tmpFilename.BuildURI() , convert the filename to "URL" format from GBK.
4, But, the brower expect utf_8.