[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [6324] Treat escape_for_html_elem() argument as UTF-8 (VZ)
From: |
Greg Chicares |
Subject: |
[lmi-commits] [6324] Treat escape_for_html_elem() argument as UTF-8 (VZ) |
Date: |
Tue, 06 Oct 2015 16:48:39 +0000 |
Revision: 6324
http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6324
Author: chicares
Date: 2015-10-06 16:48:38 +0000 (Tue, 06 Oct 2015)
Log Message:
-----------
Treat escape_for_html_elem() argument as UTF-8 (VZ)
Modified Paths:
--------------
lmi/trunk/group_quote_pdf_gen_wx.cpp
Modified: lmi/trunk/group_quote_pdf_gen_wx.cpp
===================================================================
--- lmi/trunk/group_quote_pdf_gen_wx.cpp 2015-10-06 15:17:19 UTC (rev
6323)
+++ lmi/trunk/group_quote_pdf_gen_wx.cpp 2015-10-06 16:48:38 UTC (rev
6324)
@@ -74,11 +74,13 @@
wxString escape_for_html_elem(std::string const& s)
{
+ wxString const u = wxString::FromUTF8(s.c_str());
+
wxString z;
- z.reserve(s.length());
- for(std::string::const_iterator i = s.begin(); i != s.end(); ++i)
+ z.reserve(u.length());
+ for(wxString::const_iterator i = u.begin(); i != u.end(); ++i)
{
- switch(*i)
+ switch((*i).GetValue())
{
case '<': z += "<" ; break;
case '>': z += ">" ; break;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [6324] Treat escape_for_html_elem() argument as UTF-8 (VZ),
Greg Chicares <=