unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* UTF-8 and M-x shell?
@ 2004-02-08  9:25 Daniel Pfeiffer
  2004-02-08 13:33 ` Kai Grossjohann
  2004-02-08 18:15 ` Eli Zaretskii
  0 siblings, 2 replies; 4+ messages in thread
From: Daniel Pfeiffer @ 2004-02-08  9:25 UTC (permalink / raw)


Hi,

I'm migrating my Gnu/Linux to LANG=de_DE.UTF-8 and finding that I need to
recode my old Latin-9 filenames.

But now Gnu Emacs (2-3 weeks old CVS) M-x shell gets problems.  First off, the
buffer still comes up in Latin-1.  That can apparently be fixed with
(set-language-environment "utf-8"), but only interactively, not in .emacs.el! 
But it doesn't help:

- M-! umlaut-emitting-command displays old (1-byte) umlauts as octal and utf-8
correctly

- but with the same commands in the shell buffer, with mode-line u:, it still
displays everything as one-byte.

What must I do for M-x shell to respect $LANG, like an xterm?

(Btw. before I had LANG=de_DE@euro, which is Latin-9, but Emacs wrongly
defaulted to Latin-1 -- which luckily is quite similar.)

best regards
Daniel

-- 
learn Esperanto: http://lernu.net/

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

* Re: UTF-8 and M-x shell?
  2004-02-08  9:25 UTF-8 and M-x shell? Daniel Pfeiffer
@ 2004-02-08 13:33 ` Kai Grossjohann
  2004-02-08 21:09   ` Daniel Pfeiffer
  2004-02-08 18:15 ` Eli Zaretskii
  1 sibling, 1 reply; 4+ messages in thread
From: Kai Grossjohann @ 2004-02-08 13:33 UTC (permalink / raw)


Daniel Pfeiffer <occitan@esperanto.org> writes:

> I'm migrating my Gnu/Linux to LANG=de_DE.UTF-8 and finding that I need to
> recode my old Latin-9 filenames.
>
> But now Gnu Emacs (2-3 weeks old CVS) M-x shell gets problems.
> First off, the buffer still comes up in Latin-1.  That can
> apparently be fixed with (set-language-environment "utf-8"), but
> only interactively, not in .emacs.el!

Strange.  What happens if you put (set-language-environment "utf-8")
into ~/.emacs?  Is there an error message?

> But it doesn't help:
>
> - M-! umlaut-emitting-command displays old (1-byte) umlauts as octal
> and utf-8 correctly

That's how it is supposed to be.

> - but with the same commands in the shell buffer, with mode-line u:, it still
> displays everything as one-byte.

What does M-x describe-coding-system RET RET say when in the shell
buffer?  The codings for process i/o should be utf-8.  As a
workaround, you could try M-: (set-process-coding-system nil 'utf-8
'utf-8) RET from the *shell* buffer.

> What must I do for M-x shell to respect $LANG, like an xterm?
>
> (Btw. before I had LANG=de_DE@euro, which is Latin-9, but Emacs wrongly
> defaulted to Latin-1 -- which luckily is quite similar.)

That's also strange -- my Emacs defaulted to Latin-9 when I did this.
Maybe it was a font problem?  I had set "Emacs.font:
yadda-yadda-iso8859-15" originally, but had to revert to "Emacs.font:
yadda-yadda-iso8859-1" to get the right behavior.

Kai

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

* Re: UTF-8 and M-x shell?
  2004-02-08  9:25 UTF-8 and M-x shell? Daniel Pfeiffer
  2004-02-08 13:33 ` Kai Grossjohann
@ 2004-02-08 18:15 ` Eli Zaretskii
  1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2004-02-08 18:15 UTC (permalink / raw)


> From: Daniel Pfeiffer <occitan@esperanto.org>
> Newsgroups: gnu.emacs.help
> Date: Sun, 8 Feb 2004 10:25:20 +0100
> 
> But now Gnu Emacs (2-3 weeks old CVS) M-x shell gets problems.  First off, the
> buffer still comes up in Latin-1.  That can apparently be fixed with
> (set-language-environment "utf-8"), but only interactively, not in .emacs.el! 
> But it doesn't help:
> 
> - M-! umlaut-emitting-command displays old (1-byte) umlauts as octal and utf-8
> correctly
> 
> - but with the same commands in the shell buffer, with mode-line u:, it still
> displays everything as one-byte.
> 
> What must I do for M-x shell to respect $LANG, like an xterm?

I suggest to post this to emacs-pretest-bug@gnu.org, since you are
talking about the CVS version of Emacs.

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

* Re: UTF-8 and M-x shell?
  2004-02-08 13:33 ` Kai Grossjohann
@ 2004-02-08 21:09   ` Daniel Pfeiffer
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Pfeiffer @ 2004-02-08 21:09 UTC (permalink / raw)


Sorry to all!

I had two sins: I set up latin-1 explicitly -- presumably from ancient times
when this didn't work automatically -- after my new utf-8 setup which proved
unnecessary, and I associated ctext (whatever that may have been good for)
with shell.

Ich Danke Dir Kai!
Daniel

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

end of thread, other threads:[~2004-02-08 21:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-08  9:25 UTF-8 and M-x shell? Daniel Pfeiffer
2004-02-08 13:33 ` Kai Grossjohann
2004-02-08 21:09   ` Daniel Pfeiffer
2004-02-08 18:15 ` Eli Zaretskii

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).