diff options
Diffstat (limited to 'winsup/cygwin/fhandler_clipboard.cc')
-rw-r--r-- | winsup/cygwin/fhandler_clipboard.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_clipboard.cc b/winsup/cygwin/fhandler_clipboard.cc index 9c7ba95..7b6d053 100644 --- a/winsup/cygwin/fhandler_clipboard.cc +++ b/winsup/cygwin/fhandler_clipboard.cc @@ -52,7 +52,7 @@ fhandler_dev_clipboard::read (void *ptr, size_t len) if (!clipboard_eof) { OpenClipboard(0); - hglb = GetClipboardData(CF_TEXT); + hglb = GetClipboardData((current_codepage==ansi_cp ? CF_TEXT : CF_OEMTEXT)); lpstr = (LPSTR) GlobalLock(hglb); if (len < sizeof (lpstr)) { |