bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Face problems when yanking cyrillic text from other X applications


From: Jason Rumney
Subject: Re: Face problems when yanking cyrillic text from other X applications
Date: Mon, 05 Nov 2007 22:31:14 +0000
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)

Jason Rumney wrote:
> but reading the doc string, it appears that the default is to use some
> sort of heuristic. I'm not sure why the heuristic prefers iso-2022-jp
> encoded Cyrillic over UTF8 encoding in a ru_RU.UTF-8 locale.
>   

The heuristics used are documented above the definition of
x-select-utf8-or-ctext.
I think we should change the second condition to match Cyrillic as well
as Latin characters.

    ;;   (2) Otherwise, if they are different at Nth character, and that
    ;;   of UTF8 is a Latin character and that of CTEXT belongs to a CJK
    ;;   character set, select UTF8.  Also select UTF8 if the Nth
    ;;   character of UTF8 is non-ASCII where as that of CTEXT is ASCII.
    ;;   This is because an X client may replace unsupported characters
    ;;   with some ASCII character (typically ` ' or `?') in CTEXT.





reply via email to

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