delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/04/18/08:06:32

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SARE_SUB_ENC_UTF8
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <CAGHJv4dzUGMfZXf+vrZSPgE-iA98PdO02P8w5NjEiAbi2xyT_w@mail.gmail.com>
References: <CAGHJv4dKqt_oVmb+gYZXvUfmy1q0HXimyg-UxLqEO04DAZALLQ AT mail DOT gmail DOT com> <CAGHJv4dzUGMfZXf+vrZSPgE-iA98PdO02P8w5NjEiAbi2xyT_w AT mail DOT gmail DOT com>
Date: Wed, 18 Apr 2012 13:06:01 +0100
Message-ID: <CAHWeT-buDG4W9HHuHxH0VuJ93Bt4srpCh8moR-s=hY7FHHFKiA@mail.gmail.com>
Subject: Re: utf-8 support with getclip?
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q3IC6TdV002007

On 17 April 2012 13:35, Chris Sutcliffe wrote:
> I'm having an issue with getclip and pasting utf-8 strings (like
> "PONIEDZIAŁEK" for example).  Using mintty and right clicking I get
> exactly what's in the clipboard.  If I call getclip from the command
> line, I get PONIEDZIA?EK.  My LANG is set to en_CA.UTF-8.

Yep, getclip (and putclip) don't have Unicode support (yet?), so
characters outside your system's ANSI codepage end up as question
marks.

The special /dev/clipboard device does have Unicode support though, so
you could just use 'cat /dev/clipboard' instead of getclip.

Andy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019