From: Peter Dyballa <Peter_Dyballa@Web.DE>
Cc: help-gnu-emacs@gnu.org
Subject: Re: "more", "ls -l", and column 80 in shell
Date: Mon, 26 Jun 2006 10:33:43 +0200 [thread overview]
Message-ID: <5503FE0F-6E5F-4944-BF92-E922086B8860@Web.DE> (raw)
In-Reply-To: <878xnkbvlz.fsf@catnip.gol.com>
Am 26.06.2006 um 02:37 schrieb Miles Bader:
> Peter Dyballa <Peter_Dyballa@Web.DE> writes:
>>>> I had to prevent the colourising feature, now I actually have to
>>>> turn it on actively! GNU's ls is not that careful -- and it cannot
>>>> display UTF-8 characters!
>>>
>>> Huh? Neither of these things seem to be true....
>>
>> It is true for a *shell* buffer in GNU Emacs 22.0.50: I see ``a<empty
>> box>´´ instead of ``ä´´, as in dired. In GNU Emacs 23.0.0 it all
>> looks
>> right.
>
> Sounds like your environment is messed up. What do you have LANG
> set to?
Yes. It's LANG=de_DE.UTF-8. It's valid in Mac OS X.
>
> Emacs will use LANG to try and set the correct decoding for process
> output (look at the mode-line of the *shell* buffer: there should be a
> "u:" at the beginning if your system is using utf-8).
I did not succeed to make my *shell* buffers display the u: in the
mode-line. The best I can achieve is *scratch* or *Help* with ``u:´´
and this in .emacs (although it might not be necessary, because
without this modification *shell* seems to behave the same):
(modify-coding-system-alist 'process "\\*shell\\*\\'" 'utf-8)
>
> Also I think (but only based on observation) that ls will only output
> raw characters if they are valid in the locale named by LANG, and
> AFAIK,
> "valid" means listed in "/etc/locale.gen".
>
This file was not installed from the Fink package. Strings does not
reveal such a string in the GNU ls binary, only /sw/share/locale,
where the localised messages are located.
I've also tried to set ``(modify-coding-system-alist 'process "\\*.*
output\\*\\'" 'iso-8859-15-unix)´´ (usual TeX is at an 8bit level) to
make AUCTeX output readable. The modifications for both get recorded
in process-coding-system-alist, but they do not seem to effect more.
One thing *is* true: UTF-8 output from commands in *shell* is
correctly presented. I cannot say it's a bug, or two, so I stay with it.
--
Greetings
Pete
Real Time, adj.:
Here and now, as opposed to fake time, which only occurs there and then.
prev parent reply other threads:[~2006-06-26 8:33 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-15 22:44 "more", "ls -l", and column 80 in shell RjjdBae
2006-06-15 23:46 ` Barry Margolin
2006-06-16 6:48 ` Tim X
2006-06-16 14:42 ` RjjdBae
2006-06-17 6:58 ` Tim X
2006-06-25 0:24 ` David Combs
2006-06-25 2:39 ` Tim X
2006-06-25 8:45 ` Peter Dyballa
2006-06-17 8:18 ` Peter Dyballa
[not found] ` <mailman.2970.1150533187.9609.help-gnu-emacs@gnu.org>
2006-06-25 0:30 ` David Combs
2006-06-25 8:35 ` Peter Dyballa
[not found] ` <mailman.3300.1151224578.9609.help-gnu-emacs@gnu.org>
2006-06-25 9:42 ` Tim X
2006-06-25 15:30 ` Peter Dyballa
[not found] ` <mailman.3306.1151249429.9609.help-gnu-emacs@gnu.org>
2006-06-25 21:44 ` Miles Bader
2006-06-25 22:58 ` Peter Dyballa
[not found] ` <mailman.3321.1151276298.9609.help-gnu-emacs@gnu.org>
2006-06-26 0:37 ` Miles Bader
2006-06-26 8:33 ` Peter Dyballa [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5503FE0F-6E5F-4944-BF92-E922086B8860@Web.DE \
--to=peter_dyballa@web.de \
--cc=help-gnu-emacs@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 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.