From 35c5cc6c13327c36e3e0bf0f5d6431a9c19c897a Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Tue, 24 Aug 2010 05:07:08 +0300 Subject: parse gpg output in utf8 format, possible locales bug fixed (need checks) --- utilities.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'utilities.cpp') diff --git a/utilities.cpp b/utilities.cpp index 07623e1..7d0b241 100644 --- a/utilities.cpp +++ b/utilities.cpp @@ -261,22 +261,6 @@ void storeOutput(HANDLE ahandle, string *output) } while (available>0); } -void cp866_to_cp1251(string *str) -{ - string::iterator p; - for(p = str->begin(); p != str->end(); p++) - { - if(*p > -129 && *p < -80) - *p += 64; - else if(*p > -33 && *p < -16) - *p += 16; - else if(*p == -16) - *p -= 72; - else if(*p == -17) - *p -= 57; - } -} - void HistoryLog(HANDLE hContact, char *data, int event_type, int flags) { DBEVENTINFO Event = {0}; -- cgit v1.2.3