No longer installing clibboard format for plain text on windows nt

family because nt automatically converts to and from the unicode
format.  This may fix text encoding errors when synergy puts
non-ascii text on the clipboard and other clients prefer CF_TEXT
to CF_UNICODE (which they should not because synergy lists
CF_UNICODE first).
This commit is contained in:
crs 2003-05-26 09:49:38 +00:00
parent 3fc87e7f87
commit af24ae6db7

View File

@ -16,6 +16,7 @@
#include "CMSWindowsClipboardTextConverter.h"
#include "CMSWindowsClipboardUTF16Converter.h"
#include "CLog.h"
#include "CArchMiscWindows.h"
//
// CMSWindowsClipboard
@ -29,7 +30,11 @@ CMSWindowsClipboard::CMSWindowsClipboard(HWND window) :
{
// add converters, most desired first
m_converters.push_back(new CMSWindowsClipboardUTF16Converter);
m_converters.push_back(new CMSWindowsClipboardTextConverter);
if (CArchMiscWindows::isWindows95Family()) {
// windows nt family converts to/from unicode automatically.
// let it do so to avoid text encoding issues.
m_converters.push_back(new CMSWindowsClipboardTextConverter);
}
}
CMSWindowsClipboard::~CMSWindowsClipboard()