unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Kazu Yamamoto" <kazu@iijlab.net>
Subject: [mew-int 01594] Re: windows 1252
Date: Wed, 05 Nov 2003 10:59:12 +0900 (JST)	[thread overview]
Message-ID: <20031105.105912.246010891.kazu@iijlab.net> (raw)
In-Reply-To: <878ymwrmzm.fsf@tleepslib.sk.tsukuba.ac.jp>

Hello Stephen,

# ordering was changed.

> ctext can, because in the extended segment the characters will be
> represented as themselves.  Whether Mule can or not is a different
> story.  However, I'm fairly sure that all of the characters that
> Windows 125x put into the C1 space are encodable by Mule.  See
> 
> http://www.microsoft.com/globaldev/reference/sbcs/1252.htm
> 
> for example.

Thank you for this information.

I produced 0x80-0xff into a file and let Emacs read it as Windows
1252.

Q1) According to the page above, 0x8f is undefined, and 0x9e is
    defined as LATIN SMALL LETTER Z WITH CARON.

    But Emacs 21.3.50 treated 0x8f as LATIN SMALL LETTER Z WITH CARON
    and 0x9e as undefined.

    Is this a bug?

> You don't even need to do that with an extended segment.  The
> Windows-125x sets are all IANA-registered, which should be enough for
> global uniqueness.  To represent the text, you just use the name of
> the character set: ESC % / 1 <M> <L> Windows-1252 STX ... where <M>
> and <L> encode the length of the segment and ESC and STX are the ASCII
> control characters 0x1B and 0x02.

I save the buffer as ctext. The result file is attached below. All
characters in Windows 1252 can be encoded with ctext. :-)

Q2) However the encoding is different from the one above. Is this
    encoding correct?

Note that I verified that Emacs can read the ctext file correctly.

--Kazu

ESC $ - 1 0xf4 0xcc ESC - A 
ESC $ - 1 0xf2 0xfa ESC - A 
ESC $ - 1 0xa1 0xd2 ESC - A 
ESC $ - 1 0xf2 0xfe ESC - A 
ESC $ - 1 0xf3 0xa6 ESC - A 
ESC $ - 1 0xf3 0xa0 ESC - A 
ESC $ - 1 0xf3 0xa1 ESC - A 
ESC $ - 1 0xa4 0xe6 ESC - A 
ESC $ - 1 0xf3 0xb0 ESC - A 
ESC $ - 1 0xa1 0xa0 ESC - A 
ESC $ - 1 0xf3 0xb9 ESC - A 
ESC $ - 1 0xa0 0xf2 ESC - A 
ESC $ - 1 0xa1 0xbd ESC - A 
ESC $ - 1 0xa1 0xbe ESC - A 
ESC $ - 1 0xf2 0xf8 ESC - A 
ESC $ - 1 0xf2 0xf9 ESC - A 
ESC $ - 1 0xf2 0xfc ESC - A 
ESC $ - 1 0xf2 0xfd ESC - A 
ESC $ - 1 0xf3 0xa2 ESC - A 
ESC $ - 1 0xf2 0xf3 ESC - A 
ESC $ - 1 0xf2 0xf4 ESC - A 
ESC $ - 1 0xa4 0xfc ESC - A 
ESC $ - 1 0xf5 0xe2 ESC - A 
ESC $ - 1 0xa1 0xa1 ESC - A 
ESC $ - 1 0xf3 0xba ESC - A 
ESC $ - 1 0xa0 0xf3 ESC - A 
ESC $ - 1 0xa1 0xb8 ESC - A 
0xa0 
0xa1 
...


  reply	other threads:[~2003-11-05  1:59 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20031029.160819.120233945.kazu@iijlab.net>
     [not found] ` <20031029.082403.193886873.wl@gnu.org>
     [not found]   ` <20031030.175736.39971315.kazu@iijlab.net>
2003-10-30 14:41     ` [mew-int 01581] Re: windows 1252 Werner LEMBERG
2003-10-31 11:04       ` [mew-int 01579] " Kenichi Handa
2003-10-31 12:39         ` [mew-int 01583] " Kazu Yamamoto
2003-11-01 15:36           ` [mew-int 01584] " Eli Zaretskii
2003-11-02  6:41             ` [mew-int 01582] " Stephen J. Turnbull
2003-11-04  2:13               ` [mew-int 01586] " Kazu Yamamoto
2003-11-04  5:55                 ` [mew-int 01585] " Eli Zaretskii
2003-11-04  6:13                   ` [mew-int 01587] " Kazu Yamamoto
2003-11-04  6:23                   ` [mew-int 01589] " Stephen J. Turnbull
2003-11-04 15:13                 ` [mew-int 01590] " Stefan Monnier
2003-11-04 15:55                   ` [mew-int 01591] " Kazu Yamamoto
2003-11-04 17:04                     ` [mew-int 01590] " Stefan Monnier
2003-11-04 18:45                     ` Stephen J. Turnbull
2003-11-05  1:59                       ` Kazu Yamamoto [this message]
2003-11-05  5:00                         ` [mew-int 01593] " Stephen J. Turnbull
2003-11-07  7:30                           ` Kenichi Handa
2003-11-07  7:28                         ` [mew-int 01597] " Kenichi Handa
2003-11-07  8:21                           ` [mew-int 01599] " Kazu Yamamoto
2003-11-07  7:13                 ` [mew-int 01596] " Kenichi Handa
2003-11-10  7:11                   ` [mew-int 01607] " Kazu Yamamoto
2003-11-10  7:42                     ` [mew-int 01608] " Kenichi Handa
2003-11-12 16:36                       ` [mew-int 01596] " Stephen J. Turnbull
2003-11-13  1:01                         ` Kenichi Handa
2003-11-13 16:32                           ` Stephen J. Turnbull
2003-11-14  2:57                             ` Kenichi Handa
2003-11-14 11:20                               ` Stephen J. Turnbull
2003-11-14 12:02                                 ` Kenichi Handa
2003-11-13 19:49                           ` Eli Zaretskii
2003-11-14  3:39                             ` [mew-int 01621] " 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=20031105.105912.246010891.kazu@iijlab.net \
    --to=kazu@iijlab.net \
    /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).