浏览代码

BUG: Hack for issue #8647

Brad King 16 年之前
父节点
当前提交
3838ec7d9f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/cmXMLSafe.cxx

+ 1 - 1
Source/cmXMLSafe.cxx

@@ -82,7 +82,7 @@ cmsys_ios::ostream& operator<<(cmsys_ios::ostream& os, cmXMLSafe const& self)
           // encoding.  Instead of escaping these bytes, we should
           // handle the current locale and its encoding.
           char buf[16];
-          sprintf(buf, "&#x%hx;", static_cast<unsigned short>(c));
+          sprintf(buf, "[bad-char-%hx]", static_cast<unsigned short>(c));
           os << buf;
           }
         break;