LI Daobing wrote:
> Package: emacs-snapshot-gtk
> Version: 1:20050908-1
> Severity: normal
> 
> Hello,
> 
> when I use 'C-u C-x =' before a char "适" in a buffer, I think the
> charset should be chinese-gb2312, Or I hope it be that. But it is
> japanese-jisx0212. I don't like this, because it will not use my chinese
> font and display a hollow box as described in emacs info chapter 26.12 .
> 
> I don't know whether it is a bug or I did not configure my emacs properly.
> I prefer it is bug, becase this bug still happen even when I use
> (set-language-environment "Chinese-GB").
> 
> or is there a way to adjust the charset priority?
> 
> Thanks
> 
> [1]
> character: 适 (0270313, 94411, 0x170cb, U+9002)
>     charset: [japanese-jisx0212] (JISX0212 Japanese supplement: ISO-IR-159.)
>  code point: [97 75]
>      syntax: w        which means: word
>    category: C:Chinese (Han) characters of 2-byte character sets   j:Japanese 
>  
>            |:While filling, we can break a line at this character.  
> buffer code: 0x94 0xE1 0xCB
>   file code: 0xE9 0x80 0x82 (encoded by coding system utf-8-unix)
>     display: no font available
> 
> There is an overlay here:
>  From 14 to 15
>   face                 [nil]
>   planner              t
>   planner-task         t
>   priority             51
> 
> 
> There are text properties here:
>   fontified            t
> 
> 

I confirm that "适" is one chat in charset chinese-gb2312, you can use
(list-charset-chars 'chinese-gb2312) to view it. it is on 4A4A position.

And I think this is problem of coding system, the coding system of my
buffer is utf-8. and you can see that japanese-jisx0212's priority is
higher than chinese-gb2312. How can I modify the priority?

Thanks

[1]
(describe-coding-system 'utf-8)
u -- utf-8

UTF-8 coding system

Type: 4 (do conversion by CCL program)
EOL type: Automatic selection from:
        [utf-8-unix utf-8-dos utf-8-mac]
After decoding text normally, perform post-conversion using the function:
  un-define-post-read-conversion
Before encoding text normally, perform pre-conversion using the function:
  un-define-pre-write-conversion
This coding system encodes the following charsets:
  ascii latin-iso8859-1 latin-iso8859-2 latin-iso8859-3 latin-iso8859-4
cyrillic-iso8859-5 greek-iso8859-7 hebrew-iso8859-8 latin-iso8859-9
latin-iso8859-14 latin-iso8859-15 ipa japanese-jisx0208
japanese-jisx0212 chinese-gb2312 chinese-cns11643-1 chinese-cns11643-2
chinese-cns11643-3 chinese-cns11643-4 chinese-cns11643-5
chinese-cns11643-6 chinese-cns11643-7 chinese-big5-1 chinese-big5-2
korean-ksc5601 latin-jisx0201 katakana-jisx0201 thai-tis620 ethiopic
indian-is13194 chinese-sisheng lao vietnamese-viscii-lower
vietnamese-viscii-upper tibetan mule-unicode-0100-24ff
mule-unicode-2500-33ff mule-unicode-e000-ffff mule-ucs-unicode-multichar
indian-2-column

[back]




-- 
Li Daobing

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to