all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* getpwent, user-full-name and utf-8
@ 2007-03-21  9:58 David Kastrup
  2007-03-21 19:37 ` Eli Zaretskii
  2007-03-22  5:01 ` Richard Stallman
  0 siblings, 2 replies; 9+ messages in thread
From: David Kastrup @ 2007-03-21  9:58 UTC (permalink / raw)
  To: emacs-devel


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-03-22  9:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-21  9:58 getpwent, user-full-name and utf-8 David Kastrup
2007-03-21 19:37 ` 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.