[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Decoding 'undecided has problems with a single byte string?
From: |
Jorgen Schaefer |
Subject: |
Decoding 'undecided has problems with a single byte string? |
Date: |
Tue, 15 Aug 2006 03:02:54 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
Hello!
After the following:
(prefer-coding-system 'latin-1)
(prefer-coding-system 'utf-8)
I'd expect the following code to return "ä", as \344 is invalid
utf-8, but is the latin-1 code for LATIN SMALL LETTER A WITH
DIAERESIS:
(decode-coding-string "\344" 'undecided)
Instead, it returns the empty string. Strangely enough, the
following works:
(decode-coding-string "\344\344" 'undecided)
=> "ää"
This is the case on an Emacs from CVS as of 2006-08-15.
Regards,
-- Jorgen
--
((email . "address@hidden") (www . "http://www.forcix.cx/")
(gpg . "1024D/028AF63C") (irc . "nick forcer on IRCnet"))
- Decoding 'undecided has problems with a single byte string?,
Jorgen Schaefer <=