[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
UTF-8 decoding error for characters U+10000 and above (hopefully fixed a
From: |
Joe Wells |
Subject: |
UTF-8 decoding error for characters U+10000 and above (hopefully fixed already) |
Date: |
Fri, 10 Feb 2006 14:58:38 +0000 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
I'm using the Gentoo ebuild app-editors/emacs-22.0.50_pre20050225
which is based on a CVS snapshot from last year.
Try evaluating this:
(let ((unicode-char-hex-string
(format "%x"
(encode-char
(aref (decode-coding-string
;; UTF-8 for U+1D161 (MUSICAL SYMBOL SIXTEENTH NOTE):
"\355\205\241"
'utf-8) 0)
'ucs))))
(if (equal "d161" unicode-char-hex-string)
(error "Oh no! Emacs dropped 17th bit when decoding the character!")))
If you get an error, then there is still a bug in UTF-8 decoding.
Otherwise please ignore.
--
Joe
In GNU Emacs 22.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.6.8)
of 2005-08-06 on colinux
Distributor `The Cygwin/X Project', version 11.0.60802000
configured using `configure '--prefix=/usr' '--host=i686-pc-linux-gnu'
'--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share'
'--sysconfdir=/etc' '--localstatedir=/var/lib' '--build=i686-pc-linux-gnu'
'--enable-debug' '--program-suffix=.emacs-22.0.50' '--without-carbon'
'--disable-nls' '--with-x' '--with-xpm' '--with-toolkit-scroll-bars'
'--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--with-x-toolkit=gtk'
'CFLAGS= -march=pentium4 -O2 -pipe' 'build_alias=i686-pc-linux-gnu'
'host_alias=i686-pc-linux-gnu''
- UTF-8 decoding error for characters U+10000 and above (hopefully fixed already),
Joe Wells <=