unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Thomas Morgan <tlm@pocketmail.com>
Cc: handa@etl.go.jp, bug-gnu-emacs@gnu.org
Subject: Re: decode-char & utf-8-fragment-on-decoding
Date: 07 Sep 2002 21:07:35 -0400	[thread overview]
Message-ID: <87n0qtnvag.fsf@cricket.magic.csuhayward.edu> (raw)
In-Reply-To: <rzqk7lxs87i.fsf@albion.dl.ac.uk> (message from Dave Love on 08 Sep 2002 00:14:57 +0100)

   It's indeed a bug that
   
   (eq utf-8-translation-table-for-decode
       (get 'utf-8-translation-table-for-decode 'translation-table))
     => nil

I noticed this code in international/characters.el:
   
   (modify-category-entry (make-char 'greek-iso8859-7) ?g)
   (let ((c #x370))
     (while (<= c #x3ff)
       (modify-category-entry (decode-char 'ucs c) ?g)
       (setq c (1+ c))))

My understanding is that the first line is sufficient to put all
characters from the charset `greek-iso8859-7' into the category ?g.

Then the purpose of the remaining lines must be to add Greek Unicode
characters into the category ?g, but they do not do that; instead,
they add the corresponding characters from greek-iso8859-7 in again.

So it looks like this bug has at least one practical consequence:
Greek Unicode characters are not put into the category ?g.

It occurred to me that even after this bug is fixed, the problem
would remain if utf-8-fragment-on-decoding were enabled while this
code is executed.  However, this code is executed before the user
has a chance to enable the option, right?  So as long as fragmentation
is not the default, that will be ok.

  reply	other threads:[~2002-09-08  1:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-04  5:56 decode-char & utf-8-fragment-on-decoding Thomas Morgan
2002-09-04  8:18 ` Kenichi Handa
2002-09-04 23:34   ` Dave Love
2002-09-05  1:25     ` Kenichi Handa
2002-09-05 22:45       ` Dave Love
2002-09-05  5:23     ` Thomas Morgan
2002-09-05 22:47       ` Dave Love
2002-09-06  1:13         ` Thomas Morgan
2002-09-07 23:14           ` Dave Love
2002-09-08  1:07             ` Thomas Morgan [this message]
2002-09-09 22:35               ` Dave Love
  -- strict thread matches above, loose matches on Subject: below --
2002-09-05 17:39 Thomas Morgan
2002-09-05 22:50 ` Dave Love

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=87n0qtnvag.fsf@cricket.magic.csuhayward.edu \
    --to=tlm@pocketmail.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=handa@etl.go.jp \
    /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).