SF.net SVN: mahogany:[7548] trunk/M/src/modules/crypt/PGPEngine.cpp
[email protected] Fri, 03 Oct 2008 21:06:32 +0000
| Newsgroups | gmane.mail.mahogany.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 7548
http://mahogany.svn.sourceforge.net/mahogany/?rev=7548&view=rev
Author: vadz
Date: 2008-10-03 21:06:31 +0000 (Fri, 03 Oct 2008)
Log Message:
-----------
use lossless UTF-8 encoding for passing data ti PGP instead of Latin-1 converting to which can fail
Modified Paths:
--------------
trunk/M/src/modules/crypt/PGPEngine.cpp
Modified: trunk/M/src/modules/crypt/PGPEngine.cpp
===================================================================
--- trunk/M/src/modules/crypt/PGPEngine.cpp 2008-09-17 21:53:29 UTC (rev 7547)
+++ trunk/M/src/modules/crypt/PGPEngine.cpp 2008-10-03 21:06:31 UTC (rev 7548)
@@ -311,7 +311,7 @@
messageOut.clear();
char bufOut[4096];
- wxCharBuffer bufIn(messageIn.To8BitData());
+ wxCharBuffer bufIn(messageIn.ToUTF8());
size_t lenIn = strlen(bufIn);
const char *ptrIn = bufIn;
@@ -334,7 +334,7 @@
// leave space for terminating NUL
bufOut[out->Read(bufOut, WXSIZEOF(bufOut) - 1).LastRead()] = '\0';
- messageOut += wxString::From8BitData(bufOut);
+ messageOut += wxString::FromUTF8(bufOut);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/