Hi Zach,<div><br></div><div>I've just download the last version from svn, reinstalled and tested it, adding the regexp that you've suggested. It works properly and handles the badly encoded characters perfectly.</div>
<div><br></div><div>many thanks!</div><div><br></div><div><br><br><div class="gmail_quote">On Mon, Aug 29, 2011 at 4:36 PM, Zach Mullen <span dir="ltr"><<a href="mailto:zach.mullen@kitware.com">zach.mullen@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">On that note CDash devs, what should we do about this? We could revert to the previous escaping regex, or devise a new one... Thoughts?<div>
<br></div><div><font color="#888888">-Zach</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Mon, Aug 29, 2011 at 10:34 AM, Zach Mullen <span dir="ltr"><<a href="mailto:zach.mullen@kitware.com" target="_blank">zach.mullen@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Sergio,<div><br></div><div>We fixed this bug before in revision 2832, but after some discussion decided to limit the character replacement to only the case that was currently breaking a user's dashboard, which was the escape character (see revision 2833). We said that we would expand the set of characters that we escaped as needed, and now that appears to be the case. As an immediate fix for your issue, you can edit cdash/common.php line 161 and change it from:</div>
<div><br></div><div> $value = preg_replace_callback('/[\x1b]/',</div><div><br></div><div>to:</div><div><br></div><div> $value = preg_replace_callback('/[^\x0A\x20-\x7E]/',</div><div><br></div><div><br>That should escape all non-ASCII characters and show them as "#dec" where dec is their decimal value.</div>
<div><br></div><div>Let me know if that doesn't work for you.</div><div><br></div><div>Thanks,</div><div><br></div><div><br><div class="gmail_quote"><div><div></div><div>On Mon, Aug 29, 2011 at 10:20 AM, Sergio Vera <span dir="ltr"><<a href="mailto:sergio.vera@alma3d.com" target="_blank">sergio.vera@alma3d.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div><div>Hello all</div>Our CDash Server (1.8.2) still has problems with the some builds.<div>
The problem is that some test result pages don't render properly. The php responds with</div>
<div><span style="font-family:'Times New Roman';font-size:medium"><b><br>
</b></span></div><div><span style="font-family:'Times New Roman';font-size:medium"><b>Warning</b></span><span style="font-family:'Times New Roman';font-size:medium">: DOMDocument::loadXML() [</span><span style="font-family:'Times New Roman';font-size:medium"><a href="http://frink/cdash/domdocument.loadxml" target="_blank">domdocument.loadxml</a></span><span style="font-family:'Times New Roman';font-size:medium">]: Input is not proper UTF-8, indicate encoding ! Bytes: 0xF3 0x6E 0x2F 0x44 in Entity, line: 69 in</span><span style="font-family:'Times New Roman';font-size:medium"> </span><span style="font-family:'Times New Roman';font-size:medium"><b>C:\wamp\www\cdash\cdash\common.php</b></span><span style="font-family:'Times New Roman';font-size:medium"> </span><span style="font-family:'Times New Roman';font-size:medium">on line</span><span style="font-family:'Times New Roman';font-size:medium"> </span><span style="font-family:'Times New Roman';font-size:medium"><b>42</b></span></div>
<div><font face="'Times New Roman'" size="3"><b><br clear="all"></b></font><div>then, the load of the page crashes, the css aren't read properly and a empty result page is shown.</div>
<div><br></div><div>This problem is related with this bug <a href="http://public.kitware.com/Bug/view.php?id=10829" target="_blank">http://public.kitware.com/Bug/view.php?id=10829</a> </div><div><br></div><div>We've traced the problem to a output of one of our tests that displays a path containing non ANSI characters (Z:/Investigación) Visual Studio builds, seem to handle the encoding of such string withoud problems (displaying the messages and the test result page perfectly), while MinGW / gcc tests that have that string on their output have the loadXML error. I suspect that either gcc/MinGW/msys or Cdash are doing something wrong with the encoding of the xml.</div>
<div><br></div><div>At the moment we have solved the problem by removing the sentences that generate an output of the offending path but we wonder if there is a better method to resolve the encoding problem.</div><div><br>
</div><div>Best regards.</div><div><br></div><div>Sergio</div><div><br></div><font color="#888888">-- <br>Sergio Vera<br><br> Alma IT Systems<br> C/ Vilana, 4B, 4º 1ª<br> 08022 Barcelona<br> T. <a href="tel:%28%2B34%29%20932%20380%20592" value="+34932380592" target="_blank">(+34) 932 380 592</a><br>
<a href="http://www.alma3d.com" target="_blank">www.alma3d.com</a><br>
</font></div>
<br></div></div>_______________________________________________<br>
Cdash mailing list<br>
<a href="mailto:Cdash@public.kitware.com" target="_blank">Cdash@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/cdash" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/cdash</a><br>
<br></blockquote></div><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Zach Mullen<div>R & D Engineer<br>Kitware Inc.<br><a href="tel:%28919%29%20969-6990%20x314" value="+19199696990" target="_blank">(919) 969-6990 x314</a></div>
<br>
</font></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Zach Mullen<div>R & D Engineer<br>Kitware Inc.<br><a href="tel:%28919%29%20969-6990%20x314" value="+19199696990" target="_blank">(919) 969-6990 x314</a></div>
<br>
</div></div></div>
<br>_______________________________________________<br>
Cdash mailing list<br>
<a href="mailto:Cdash@public.kitware.com">Cdash@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/cdash" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/cdash</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Sergio Vera<br><br> Alma IT Systems<br> C/ Vilana, 4B, 4º 1ª<br> 08022 Barcelona<br> T. (+34) 932 380 592<br> <a href="http://www.alma3d.com">www.alma3d.com</a><br>
</div>