* Problem with (user-full-name) Character Encoding
@ 2009-12-18 8:34 Nordlöw
2009-12-18 9:59 ` Eli Zaretskii
2009-12-19 9:41 ` Jason Rumney
0 siblings, 2 replies; 3+ messages in thread
From: Nordlöw @ 2009-12-18 8:34 UTC (permalink / raw)
To: help-gnu-emacs
What variables control how (user-full-name) encodes its characters?
When I do eval (user-full-name) in "my" Emacs i get
"Per Nordl\303\266w"
but when I do it in Vanilla Emacs it works correctly and outputs:
"Per Nordlöw"
What variables control these encodings?
From the shell and from within my Emacs, using (getenv), LANG has the
correct value "sv_SE.UTF-8".
What variables have I missed?
Thanks in advance,
Nordlöw
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem with (user-full-name) Character Encoding
2009-12-18 8:34 Problem with (user-full-name) Character Encoding Nordlöw
@ 2009-12-18 9:59 ` Eli Zaretskii
2009-12-19 9:41 ` Jason Rumney
1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2009-12-18 9:59 UTC (permalink / raw)
To: help-gnu-emacs
> From: Nordlöw <per.nordlow@gmail.com>
> Date: Fri, 18 Dec 2009 00:34:29 -0800 (PST)
>
> What variables control how (user-full-name) encodes its characters?
>
> When I do eval (user-full-name) in "my" Emacs i get
> "Per Nordl\303\266w"
>
> but when I do it in Vanilla Emacs it works correctly and outputs:
> "Per Nordlöw"
>
> What variables control these encodings?
>
> From the shell and from within my Emacs, using (getenv), LANG has the
> correct value "sv_SE.UTF-8".
>
> What variables have I missed?
Try comparing the output of "M-x mule-diag RET" in both session, maybe
that will give you a clue.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem with (user-full-name) Character Encoding
2009-12-18 8:34 Problem with (user-full-name) Character Encoding Nordlöw
2009-12-18 9:59 ` Eli Zaretskii
@ 2009-12-19 9:41 ` Jason Rumney
1 sibling, 0 replies; 3+ messages in thread
From: Jason Rumney @ 2009-12-19 9:41 UTC (permalink / raw)
To: help-gnu-emacs
On Dec 18, 4:34 pm, Nordlöw <per.nord...@gmail.com> wrote:
> What variables control how (user-full-name) encodes its characters?
(user-full-name) without any arguments just returns the variable user-
full-name, which is encoded in Emacs internal encoding once set. It
is probably initialised from your environment. which will be decoded
using locale-coding-system.
> From the shell and from within my Emacs, using (getenv), LANG has the
> correct value "sv_SE.UTF-8".
I'm not sure what has precedence, but some of the LC_* environment
variables also affect locale-coding-system, as will calling set-
language-environment from your .emacs.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-12-19 9:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-18 8:34 Problem with (user-full-name) Character Encoding Nordlöw
2009-12-18 9:59 ` Eli Zaretskii
2009-12-19 9:41 ` Jason Rumney
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).