From: David Kastrup <dak@gnu.org>
To: emacs-devel@gnu.org
Subject: getpwent, user-full-name and utf-8
Date: Wed, 21 Mar 2007 10:58:08 +0100 [thread overview]
Message-ID: <86zm66q5ov.fsf@lola.quinscape.zz> (raw)
Hi,
user-full-name is set using getpwentry without decoding the resulting
byte string at all.
The manual page of getpwent does not mention any encoding of
/etc/passwd, neither does that of /etc/passwd.
It is a safe bet, however, that /etc/passwd is not encoded in
emacs-mule.
Since different users may use different language environments, I
propose that we decode the results from getpwent according to utf-8.
There will likely be similar problems with other system functions
(name server lookup?). emacs-mule certainly is not the right answer
to the encoding problem. And the problem will persist with
emacs-unicode2 as well since there is a difference between illegal
byte sequences and decoded illegal byte sequences.
I propose that we bite the bullet, assume a fixed external system
encoding of utf-8 for such strings, and recode accordingly.
--
David Kastrup
next reply other threads:[~2007-03-21 9:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-21 9:58 David Kastrup [this message]
2007-03-21 19:37 ` getpwent, user-full-name and utf-8 Eli Zaretskii
2007-03-21 20:51 ` David Kastrup
2007-03-22 2:30 ` Miles Bader
2007-03-22 7:01 ` Jan Djärv
2007-03-22 7:40 ` David Kastrup
2007-03-22 8:17 ` Jan Djärv
2007-03-22 9:06 ` Jan Djärv
2007-03-22 5:01 ` Richard Stallman
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=86zm66q5ov.fsf@lola.quinscape.zz \
--to=dak@gnu.org \
--cc=emacs-devel@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).