* Incorrect display using Chinese-GBK language environment
@ 2008-03-19 8:53 Yu-ning Feng
0 siblings, 0 replies; only message in thread
From: Yu-ning Feng @ 2008-03-19 8:53 UTC (permalink / raw)
To: emacs-pretest-bug
[-- Attachment #1.1: Type: text/plain, Size: 2472 bytes --]
description
--------
When .emacs was empty, started emacs
$emacs-23.0.60 -fn "DejaVu Sans Mono-12"
on the splash screen, there should have been 4 chinese characters at the
right-most of the line where "Emacs Tutorial" was at.
Instead, 4 korean characters were displayed. (See *1.png)
Information of the first character was as below:
character: 快 (24555, #o57753, #x5feb)
preferred charset: chinese-gbk (GBK Chinese simplified.)
code point: 0xBFEC
syntax: w which means: word
category: C:Chinese (Han) characters of 2-byte character sets
c:Chinese h:Korean j:Japanese
|:While filling, we can break a line at this character.
buffer code: #xE5 #xBF #xAB
file code: #xE5 #xBF #xAB (encoded by coding system utf-8-unix)
display: by this font (glyph code)
-wenquanyi-wenquanyi bitmap
song-medium-r-normal--16-160-75-75-P-80-iso10646-1 (#xBFEC)
(That chinese character in describtion info was not displayed correctly
either.)
Then .emacs was changed to:
(set-fontset-font "fontset-default" 'chinese-gb2312 '("wenquanyi bitmap
song" . "iso10646"))
(set-language-environment 'Chinese-GB)
restart emacs by the same way. This time those characters displayed
correctly. (See *2.png)
Then, once more, .emacs was changed to:
(set-fontset-font "fontset-default" 'chinese-gbk '("wenquanyi bitmap song" .
"iso10646"))
(set-language-environment 'Chinese-GBK)
still restart emacs by the same way. Characters displayed incorrect.(See *
3.png)
my conclusion
--------
Since the gbk was an extending encoding based on gb2312, and was backward
compatible with the later one, I thought the gbk encoding system or the gbk
language environment in emacs was not working as expected.
In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.8.20)
of 2008-03-19 on ynfeng
Windowing system distributor `The X.Org Foundation', version 11.0.70101000
configured using `configure '--prefix=/home/yuning/emacs-2008-3-18/'
'--with-x-toolkit=gtk' '--with-xft' '--enable-font-backend' '--with-xpm=no'
'--with-jpeg=no' '--with-gif=no' '--with-tiff=no''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: zh_CN.UTF-8
value of $XMODIFIERS: @im=SCIM
locale-coding-system: utf-8-unix
default-enable-multibyte-characters: t
[-- Attachment #1.2: Type: text/html, Size: 3304 bytes --]
[-- Attachment #2: Screenshot-emacs-23.0.60@ynfeng-1.png --]
[-- Type: image/png, Size: 102933 bytes --]
[-- Attachment #3: Screenshot-emacs-23.0.60@ynfeng-2.png --]
[-- Type: image/png, Size: 109875 bytes --]
[-- Attachment #4: Screenshot-emacs-23.0.60@ynfeng-3.png --]
[-- Type: image/png, Size: 107645 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-03-19 8:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-19 8:53 Incorrect display using Chinese-GBK language environment Yu-ning Feng
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.