unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Yu-ning Feng" <fengyuning1984@gmail.com>
To: emacs-pretest-bug@gnu.org
Subject: Incorrect display using Chinese-GBK language environment
Date: Wed, 19 Mar 2008 16:53:15 +0800	[thread overview]
Message-ID: <a505dc9d0803190153g7893bda2o28b05e6e03579103@mail.gmail.com> (raw)


[-- 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 --]

                 reply	other threads:[~2008-03-19  8:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=a505dc9d0803190153g7893bda2o28b05e6e03579103@mail.gmail.com \
    --to=fengyuning1984@gmail.com \
    --cc=emacs-pretest-bug@gnu.org \
    /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).