emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unicode support for the MS Windows clipboard


From: Eli Zaretskii
Subject: Re: Unicode support for the MS Windows clipboard
Date: Sat, 29 May 2004 14:21:15 +0200

> From: Benjamin Riefenstahl <address@hidden>
> Date: Fri, 28 May 2004 15:26:10 +0200
> 
> How does this sound:
> 
> - If selection-coding-system has the form /(.*-)?utf-16.*/, I assume
>   CF_UNICODETEXT is wanted.
> 
> - If selection-coding-system has the form /cp[0-9]+.*/ or
>   /windows-[0-9]+.*/, I derive the codepage from that.
> 
>     - Check if the codepage is identical to GetACP() or GetOEMCP().
>       If it is, use CF_TEXT or CF_OEMTEXT accordingly. 
> 
>     - Else get a corresponding LCID (reverse mapping via
>       EnumLocales()) which has the codepage as OEM or "ANSI".  In this
>       case we also need to set LC_LOCALE accordingly.

That's okay, I think, if we also set the default value of
selection-coding-system on Windows to utf-16-le-dos (or what's its
name).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]