
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tlug] Re: Piping stderr?
"Stephen J. Turnbull" <stephen@example.com> writes:
>>>>>> "Mike" == Mike Fabian <mfabian@example.com> writes:
>
> Mike> But as zsh doesn't support any multibyte encodings yet and I
> Mike> don't know of any patches to add multibyte support to zsh, I
> Mike> prefer to use a bash patched for multibyte (including UTF-8)
> Mike> support.
>
> Err, why should a shell "support" multibyte encodings? Make it 8-bit
> clean, for shell syntax use ASCII (sorry), for localization of string
> data, use an EUC variant, for multilingualization, use UTF-8. Almost
> everything else can be put off to the terminal and/or external
> commands, no?
What about glob patterns:
mfabian@example.com:~/filenames$ bash
mfabian@example.com:~/filenames$ touch 貴社 の 記者 が 汽車 で 帰社 しますした。
mfabian@example.com:~/filenames$ ls
が しますした。 で の 帰社 汽車 記者 貴社
mfabian@example.com:~/filenames$ ls [汽帰]*
帰社 汽車
mfabian@example.com:~/filenames$ zsh
mfabian@example.com ~/filenames$ ls
が しますした。 で の 帰社 汽車 記者 貴社
mfabian@example.com ~/filenames$ ls [汽帰]*
zsh: no matches found: [\M-f\M-1\M-=\M-e\M-8\M-0]*
mfabian@example.com ~/filenames$ locale
LANG=ja_JP.UTF-8
LC_CTYPE="ja_JP.UTF-8"
LC_NUMERIC="ja_JP.UTF-8"
LC_TIME="ja_JP.UTF-8"
LC_COLLATE=POSIX
LC_MONETARY="ja_JP.UTF-8"
LC_MESSAGES="ja_JP.UTF-8"
LC_PAPER="ja_JP.UTF-8"
LC_NAME="ja_JP.UTF-8"
LC_ADDRESS="ja_JP.UTF-8"
LC_TELEPHONE="ja_JP.UTF-8"
LC_MEASUREMENT="ja_JP.UTF-8"
LC_IDENTIFICATION="ja_JP.UTF-8"
LC_ALL=
mfabian@example.com ~/filenames$
both bash and zsh are running in UTF-8 locale in this example.
It doesn't help if you do that in an (X)Emacs shell buffer. It
doesn't work with zsh even if running in an (X)Emacs shell buffer.
--
Mike Fabian <mfabian@example.com> http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。
Home |
Main Index |
Thread Index