unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org, shinra@j10n.org
Subject: Re: Feature request: multibyte user-full-name
Date: Mon, 20 Mar 2006 13:47:36 +0900	[thread overview]
Message-ID: <E1FLCIq-0002JT-00@etlken> (raw)
In-Reply-To: <87mzft813o.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Tue, 14 Mar 2006 11:07:47 -0500)


Stefan Monnier <monnier@iro.umontreal.ca> writes:

>>> Anyway, as far as a system allows users to switch locale, I
>>> think, pw_gecos must adopt locale-independent encoding, thus
>>> the possible encoding is one of UTF-*.  And, considering
>>> backward compatibility, it should be UTF-8.  Then, how about
>>> we always decode it by utf-8 (only if it contains a byte
>>> with MSB set) while falling back to locale-coding-system
>>> (invalid utf-8 sequence is found), and see if that works on
>>> any systems?

> That sounds like a reasonable plan.

AIDA Shinra <shinra@j10n.org> writes:

> Now I support Handa's proposal. It will work in most real sites.

Sorry, but I've just noticed that utf-8 decoding doesn't
work in init_editfns () (which sets Vuser_full_name)
because, at this time, emacs/lisp/international is not yet
in Vload_path and thus loading of subst-ksc, etc fails if
the name contains CJK chars.  :-(

It may be possible to delay setting of user-full-name until
Vload_path is setup, but I'm not sure it's worth making that
kind of nontrivial change at this stage.

On the other hand, the same strategy can be implemented in
emacs-unicode-2 without such a problem.  So, I'm going to do
that in that branch.

---
Kenichi Handa
handa@m17n.org

  reply	other threads:[~2006-03-20  4:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-12  7:35 Feature request: multibyte user-full-name AIDA Shinra
2006-03-14  1:48 ` Kenichi Handa
2006-03-14  3:18   ` AIDA Shinra
2006-03-14  4:54     ` Zhang Wei
2006-03-14  6:22       ` Miles Bader
2006-03-14  5:44     ` Kenichi Handa
2006-03-14 16:17       ` AIDA Shinra
2006-03-14 16:07     ` Stefan Monnier
2006-03-20  4:47       ` Kenichi Handa [this message]
2006-03-14 22:36     ` Stefan Monnier
2006-03-15  7:46       ` Jan D.
2006-03-19  6:12         ` AIDA Shinra

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=E1FLCIq-0002JT-00@etlken \
    --to=handa@m17n.org \
    --cc=emacs-devel@gnu.org \
    --cc=shinra@j10n.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).