Bugzilla – Attachment 85353 Details for
Bug 68790
Other: Build fails on Windows when system locale is "Japanese(Japan)" .
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for escaping UTF-8 chars
0002-fdo-68790.patch (text/plain), 869 bytes, created by
Tomofumi Yagi
on 2013-09-06 13:22:04 UTC
(
hide
)
Description:
Patch for escaping UTF-8 chars
Filename:
MIME Type:
Creator:
Tomofumi Yagi
Created:
2013-09-06 13:22:04 UTC
Size:
869 bytes
patch
obsolete
>diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx >index b439389..87ab8f7 100644 >--- a/l10ntools/source/export.cxx >+++ b/l10ntools/source/export.cxx >@@ -23,6 +23,7 @@ > #include <cstring> > > #include "helper.hxx" >+#include "boost/format.hpp" > #include "boost/scoped_ptr.hpp" > #include <stdio.h> > #include <stdlib.h> >@@ -1189,8 +1190,11 @@ void Export::WriteToMerged(const OString &rText , bool bSDFContent) > if (sText[i] == '\n') { > *aOutput.mSimple << '\n'; > } else { >- char cChar = sText[i]; >- *aOutput.mSimple << cChar; >+ unsigned short aChar = 0x00ff & static_cast<unsigned short>(sText[i]); >+ if ( aChar <= 0x007f ) >+ *aOutput.mSimple << sText[i]; >+ else >+ *aOutput.mSimple << boost::format("\\x%02x") % aChar; > } > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 68790
:
84969
|
84970
|
84972
| 85353