1 |
David Relson skrev: |
2 |
> |
3 |
> I've got both emacs and xemacs installed. Using xemacs, most of the |
4 |
> chinese, japanese, and korean characters show up as hex codes like |
5 |
> \226. emacs does the better job (with japanese being correct). |
6 |
> |
7 |
> I've looked at the utf-8.xml page and what I've got is a combination of |
8 |
> en_US.UTF-8 and "C" (see the end of this message). |
9 |
> |
10 |
> My 2.6.24 kernel has iso8859-1 as its default and I'm rebuilding with |
11 |
> UTF-8 as the default to see if this helps. |
12 |
> |
13 |
> Regards, |
14 |
> |
15 |
> David |
16 |
> |
17 |
> **************************************************** |
18 |
> In /etc/locale.gen is: |
19 |
> |
20 |
> en_US.UTF-8 UTF-8 |
21 |
> |
22 |
> In /etc/profile.env is: |
23 |
> |
24 |
> export LANG='en_US.UTF-8' |
25 |
> |
26 |
> In /etc/env.d/02locale.gen is: |
27 |
> |
28 |
> LANG="en_US.UTF-8" |
29 |
> |
30 |
> "env-update" and "source /etc/profile" have been run. |
31 |
> |
32 |
> Running "locale" reports: |
33 |
> |
34 |
> LANG=en_US.UTF-8 |
35 |
> LC_CTYPE="C" |
36 |
> LC_NUMERIC="C" |
37 |
> LC_TIME="C" |
38 |
> LC_COLLATE="C" |
39 |
> LC_MONETARY="C" |
40 |
> LC_MESSAGES="C" |
41 |
> LC_PAPER="C" |
42 |
> LC_NAME="C" |
43 |
> LC_ADDRESS="C" |
44 |
> LC_TELEPHONE="C" |
45 |
> LC_MEASUREMENT="C" |
46 |
> LC_IDENTIFICATION="C" |
47 |
> LC_ALL=C |
48 |
> |
49 |
> Running "locale -a" reports: |
50 |
> |
51 |
> C |
52 |
> POSIX |
53 |
> en_US.utf8 |
54 |
> |
55 |
> |
56 |
> |
57 |
|
58 |
Try running emacs like this: |
59 |
LC_ALL="en_US.UTF-8" emacs -nw |
60 |
|
61 |
If that doesn't help I have no idea why it doesn't work. I am able to |
62 |
display Japanese, Chinese and Korean with xterm (with unicode enabled) |
63 |
and LC_ALL and LANG set to "sv_SE.utf8". |
64 |
|
65 |
However, in my .emacs file I have these lines (but I don't think they |
66 |
are required any longer): |
67 |
|
68 |
(set-default-coding-systems 'utf-8) |
69 |
(set-terminal-coding-system 'utf-8) |
70 |
(set-keyboard-coding-system 'utf-8) |
71 |
|
72 |
-- |
73 |
|
74 |
|
75 |
//*David Sveningsson [eXt]* |
76 |
|
77 |
Freelance coder | Game Development Student |
78 |
http://sidvind.com |
79 |
|
80 |
Thou shalt make thy program's purpose and structure clear to thy fellow |
81 |
man by using the One True Brace Style, even if thou likest it not, for |
82 |
thy creativity is better used in solving problems than in creating |
83 |
beautiful new impediments to understanding. |