unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Anton Zinoviev <anton@lml.bas.bg>
Cc: Anton Zinoviev <anton@lml.bas.bg>, emacs-devel@gnu.org
Subject: Re: "Outer world" encoding for non-Latin1 language environments
Date: Fri, 1 Mar 2002 20:00:58 +0200	[thread overview]
Message-ID: <20020301200057.A25880@fmi.uni-sofia.bg> (raw)
In-Reply-To: <Pine.SUN.3.91.1020227130618.22605A-100000@is>; from eliz@is.elta.co.il on Wed, Feb 27, 2002 at 01:10:41PM +0200

On 27.II.2002 at 13:10 (+0200) Eli Zaretskii wrote:
> 
> On Wed, 27 Feb 2002, Anton Zinoviev wrote:
> 
> > Even when users choose some non-Latin1 language environment Emacs
> > doesn't suppose that it's new default encoding is actually the
> > encoding of the X-clipboard, the console font, etc.  This can be
> > easily changed in this way:
> 
> Why change it?  The default for X selections is compound-text, which can 
> handle many different languages/scripts mixed in a single selection.  
> What you propose (to set it to koi8-u) will limit the selections to a 
> single charset.  Why is that a good idea?

I was under impression that Emacs doesn't support compound-text.  It
doesn't touch command sequences and pasting from xterm gives something
like:

^[%/1\200\212\koi8-r^B......

where dots are Latin-1 letters instead of Cyrillic.

Many programs doesn't use such command-sequences and
set-clipboard-coding-system helps for pasting from them.  However the
right solution is to improve the support for compound-text in Emacs.
It should interpret these control sequences when pasting and generate
them when copying.  For the last task it has to know the defauld
encoding for the language environment and use it if possible because
most of the programs can'r reencode if you paste in them.

> > (defun setup-koi8u-coding-system () 
> >   (let ()
> >     (set-keyboard-coding-system 'koi8-u)
> >     (set-clipboard-coding-system 'koi8-u)
> >     (set-terminal-coding-system 'koi8-u)))
> 
> Whether defining a language environment should set keyboard and terminal 
> encodings is an old issue, but it isn't a clear-cut one.  It is possible 
> that someone defines a language environment but her keyboard and/or 
> terminal cannot cope with encoded characters.

In this case setting the keyboard won't make any harm to this user, as
then he or she can use some of the input methods provided by Emacs.
There is no situation when it might be usefull if Emacs interprets my
Cyrillic input as Latin1.

After wrong setting of the terminal encoding the user will see garbage
instead of question marks, so again that's not big harm.


Regards, Anton Zinoviev

P.S. Should I cc you when replying?

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


  reply	other threads:[~2002-03-01 18:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-27 11:29 "Outer world" encoding for non-Latin1 language environments Anton Zinoviev
2002-02-27 11:10 ` Eli Zaretskii
2002-03-01 18:00   ` Anton Zinoviev [this message]
2002-03-01 18:23     ` Stefan Monnier
2002-03-01 19:57     ` Eli Zaretskii
2002-03-05 10:57       ` Anton Zinoviev
2002-03-05 17:28         ` Eli Zaretskii
2002-03-06 18:27           ` Anton Zinoviev
2002-03-06 19:22             ` Eli Zaretskii
2002-03-06 20:16               ` Anton Zinoviev
2002-03-07  6:02                 ` Eli Zaretskii
2002-03-13 20:13                   ` Anton Zinoviev
2002-03-15  7:09                     ` Eli Zaretskii
2002-03-22 12:25                     ` Eli Zaretskii
2002-03-01  1:28 ` Stefan Monnier
2002-03-01  7:36   ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2002-02-27 11:46 Kenichi Handa
2002-02-27 12:11 ` Eli Zaretskii

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=20020301200057.A25880@fmi.uni-sofia.bg \
    --to=anton@lml.bas.bg \
    --cc=emacs-devel@gnu.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).