unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Subject: strange UTF8 encoding problem (relevant to decoding-system-gone-awry?)
Date: Thu, 17 Feb 2005 12:48:38 +0000	[thread overview]
Message-ID: <87y8dnmjx5.fsf@kanga.tapsellferrier.co.uk> (raw)

I've noted the current discussion on Emacs coding.


I am experiencing a strange problem with Emacs encoding which I
thought I might share.

I'm reading the tcpd package's hosts_acccess man page with Emacs man
from this version of Emacs:

  GNU Emacs 21.3.50.22 (i686-pc-linux-gnu, GTK+ Version 2.4.10) of
  2004-12-14


In the man page viewed on a terminal there are nice little bullet
characters. Hexdump shows these characters as B7 so obviously the
terminal is not UTF-8.

The UTF-8 sequence for B7 is 0301 0267.

When I view the man page in Emacs with utf-8 encoding on by default I
get a \267. Encoding the page as unix produces:  \302\267 which
*does* look like a valid UTF-8 byte sequence.

When I do (what-cursor-position) on the character I get 302 which is
the first byte in the sequence.

I'm not sure what Emacs is doing here. It looks like valid UTF-8 and
yet (what-cursor-position) obviously does not believe there is a UTF-8
character.

Anybody got any idea why the correct character doesn't display?


btw Woman display the manual page with the strange bullet converted to
an asterisk.


-- 
Nic Ferrier
http://www.tapsellferrier.co.uk

             reply	other threads:[~2005-02-17 12:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-17 12:48 Nic Ferrier [this message]
2005-02-22  7:38 ` strange UTF8 encoding problem (relevant to decoding-system-gone-awry?) Kenichi Handa

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=87y8dnmjx5.fsf@kanga.tapsellferrier.co.uk \
    --to=nferrier@tapsellferrier.co.uk \
    /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).