From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-82359-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1KKixz-0006sP-QO
	for garchives@archives.gentoo.org; Mon, 21 Jul 2008 00:09:28 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 9FF4AE03D8;
	Mon, 21 Jul 2008 00:09:25 +0000 (UTC)
Received: from mail.osagesoftware.com (osagesoftware.com [216.144.204.42])
	by pigeon.gentoo.org (Postfix) with ESMTP id 54634E03D8
	for <gentoo-user@lists.gentoo.org>; Mon, 21 Jul 2008 00:09:25 +0000 (UTC)
Received: from osage.osagesoftware.com (osage.osagesoftware.com [192.168.1.10])
	by mail.osagesoftware.com (Postfix) with ESMTP id E95357BC36;
	Sun, 20 Jul 2008 20:09:24 -0400 (EDT)
Date: Sun, 20 Jul 2008 20:09:24 -0400
From: David Relson <relson@osagesoftware.com>
To: gentoo-user@lists.gentoo.org
Cc: ext@sidvind.com
Subject: Re: [gentoo-user] emacs and asian languages
Message-ID: <20080720200924.2a17f449@osage.osagesoftware.com>
In-Reply-To: <4883BD75.9080800@sidvind.com>
References: <20080720101247.1be3183b@osage.osagesoftware.com>
	<20080720222915.14733p3d7bvcmfi8@mail.sidvind.com>
	<20080720175741.11bd2a7e@osage.osagesoftware.com>
	<4883BD75.9080800@sidvind.com>
Organization: Osage Software Systems, Inc.
X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.9; x86_64-pc-linux-gnu)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Archives-Salt: 8bc5a53b-c344-4d84-bcd4-fb01327995f8
X-Archives-Hash: 29808590c83790e3a5b1251af72e617b

On Mon, 21 Jul 2008 00:34:29 +0200
David Sveningsson wrote:

> David Relson skrev:
> > On Sun, 20 Jul 2008 22:29:15 +0200
> > David Sveningsson wrote:
> >> This sounds like a font issue to me. Can you see the characters  
> >> correctly if you cat the files?
> > 
> > Hi David,
> > 
> > Using a Gnome terminal and the default character set "Current Local
> > Ansi_X3.4-1968" all the asian characters are bad.  Using "Unicode
> > (UTF-8)" all look good.  So cat'ing _does_ work properly.
> > 
> > On the plus side, being able to display correctly in (1) a Gnome
> > terminal and (2) in Eclipse's source code window (which uses
> > "Monospace") and (3) in a Claws-Mail window indicates that all
> > needed fonts are available.
> > 
> > On the minus side, e experiments to change emacs' mule encoding to
> > ascii, chinese, and utf-8 don't seem to have any effect :-<
> > 
> > And in an emacs *shell* window (with "mule...set UTF-8", the strings
> > show up like:
> > 
> >    String sh = "zh: \344\270\226\347\225u"\345\245\275";
> > 
> > which interprets as the octal codes corresponding to UTF-8 char. 
> > 
> > David
> > 
> > 
> 
> I assume you are using xemacs, does it work if you're not using
> xemacs (use the -nw flag when launching)? I have never used mule
> myself as it is not needed with emacs 22. Since everything seems to
> work in your terminal I cannot see why it wouldn't work in emacs, but
> I'm not an expert.
> 
> Just to be sure, have you followed the steps in 
> http://www.gentoo.org/doc/en/utf-8.xml?
> -- 

I've got both emacs and xemacs installed.  Using xemacs, most of the
chinese, japanese, and korean characters show up as hex codes like
\226.  emacs does the better job (with japanese being correct).

I've looked at the utf-8.xml page and what I've got is a combination of
en_US.UTF-8 and "C" (see the end of this message).

My 2.6.24 kernel has iso8859-1 as its default and I'm rebuilding with
UTF-8 as the default to see if this helps.

Regards,

David

****************************************************
In /etc/locale.gen is:

    en_US.UTF-8 UTF-8

In /etc/profile.env is:

    export LANG='en_US.UTF-8'

In /etc/env.d/02locale.gen is:

    LANG="en_US.UTF-8"

"env-update" and "source /etc/profile" have been run.

Running "locale" reports:

    LANG=en_US.UTF-8
    LC_CTYPE="C"
    LC_NUMERIC="C"
    LC_TIME="C"
    LC_COLLATE="C"
    LC_MONETARY="C"
    LC_MESSAGES="C"
    LC_PAPER="C"
    LC_NAME="C"
    LC_ADDRESS="C"
    LC_TELEPHONE="C"
    LC_MEASUREMENT="C"
    LC_IDENTIFICATION="C"
    LC_ALL=C

Running "locale -a" reports:

    C
    POSIX
    en_US.utf8