From: Jason Rumney <jasonr@gnu.org>
To: Kenichi Handa <handa@m17n.org>
Cc: bug-gnu-emacs@gnu.org, "cmr.Pent@gmail.com" <cmr.Pent@gmail.com>
Subject: Re: Face problems when yanking cyrillic text from other X applications
Date: Mon, 05 Nov 2007 22:31:14 +0000 [thread overview]
Message-ID: <472F99B2.5070908@gnu.org> (raw)
In-Reply-To: <472F893E.1080909@gnu.org>
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.
next prev parent reply other threads:[~2007-11-05 22:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-03 13:45 Face problems when yanking cyrillic text from other X applications Andrey
2007-11-03 15:58 ` Eli Zaretskii
[not found] ` <mailman.2935.1194105535.18990.bug-gnu-emacs@gnu.org>
2007-11-05 10:29 ` cmr.Pent
2007-11-05 20:14 ` Eli Zaretskii
2007-11-05 21:21 ` Jason Rumney
2007-11-05 22:31 ` Jason Rumney [this message]
[not found] ` <mailman.3017.1194297672.18990.bug-gnu-emacs@gnu.org>
2007-11-06 18:53 ` cmr.Pent
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=472F99B2.5070908@gnu.org \
--to=jasonr@gnu.org \
--cc=bug-gnu-emacs@gnu.org \
--cc=cmr.Pent@gmail.com \
--cc=handa@m17n.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).