[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: eight-bit char handling in emacs-unicode
From: |
Stefan Monnier |
Subject: |
Re: eight-bit char handling in emacs-unicode |
Date: |
27 Nov 2003 14:58:32 -0500 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
> But the question is then: what does it mean to read a text as multibyte?
> The input we get is normaly a stream of bytes and we need to decode it
> into a stream of (multibyte) chars using a coding-system.
> You seem to be thinking of reading files. I'm talking about handling
> keyboard input. If it was handled and accumulated as multibyte,
> but then you want to get the result that you'd have got if it had
> been inserted in a unibyte buffer, the existing string-make-unibyte
> seems to be the right thing to convert.
It's actually not the case. If your keyboard is using say utf-8 encoding
and you realize "oh wait I wanted it in unibyte", the string-make-unibyte
will not get you back the unibyte sequence: you'd need to
encode-coding-string instead.
Stefan
- Re: eight-bit char handling in emacs-unicode, (continued)
- Re: eight-bit char handling in emacs-unicode, Kenichi Handa, 2003/11/25
- Re: eight-bit char handling in emacs-unicode, Stefan Monnier, 2003/11/26
- Re: eight-bit char handling in emacs-unicode, Kenichi Handa, 2003/11/26
- Re: eight-bit char handling in emacs-unicode, Stefan Monnier, 2003/11/27
- Re: eight-bit char handling in emacs-unicode, Kenichi Handa, 2003/11/30
- Re: eight-bit char handling in emacs-unicode, Richard Stallman, 2003/11/25
- Re: eight-bit char handling in emacs-unicode, Stefan Monnier, 2003/11/25
- Re: eight-bit char handling in emacs-unicode, Richard Stallman, 2003/11/26
- Re: eight-bit char handling in emacs-unicode, Stefan Monnier, 2003/11/26
- Re: eight-bit char handling in emacs-unicode, Richard Stallman, 2003/11/27
- Re: eight-bit char handling in emacs-unicode,
Stefan Monnier <=
- Re: eight-bit char handling in emacs-unicode, Richard Stallman, 2003/11/29
- Re: eight-bit char handling in emacs-unicode, Stefan Monnier, 2003/11/30
- Re: BIG5-HKSCS?, Simon Josefsson, 2003/11/15
- Re: BIG5-HKSCS?, Kenichi Handa, 2003/11/16
- Re: BIG5-HKSCS?, Simon Josefsson, 2003/11/16
- Re: BIG5-HKSCS?, Eli Zaretskii, 2003/11/17
- Re: BIG5-HKSCS?, Simon Josefsson, 2003/11/17
- Re: BIG5-HKSCS?, Richard Stallman, 2003/11/18
- Re: BIG5-HKSCS?, Simon Josefsson, 2003/11/18
- Re: BIG5-HKSCS?, Richard Stallman, 2003/11/19