Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: UTF-8 input [was Re: PATCH: zle_params.c]
- X-seq: zsh-workers 20767
- From: Peter Stephenson <pws@xxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: Re: UTF-8 input [was Re: PATCH: zle_params.c]
- Date: Tue, 01 Feb 2005 10:37:45 +0000
- In-reply-to: <1050131182902.ZM31426@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200501261806.j0QI6Q2d021854@xxxxxxxxxxxxxx> <20050129034740.GA21742@xxxxxxxxxxx> <20050130010754.6F985863A@xxxxxxxxxxxxxxxxxxxxxxxx> <1050130063525.ZM24312@xxxxxxxxxxxxxxxxxxxxxxx> <200501311146.j0VBki1g028832@xxxxxxxxxxxxxx> <1050131161826.ZM31264@xxxxxxxxxxxxxxxxxxxxxxx> <200501311701.j0VH1pRR031376@xxxxxxxxxxxxxx> <1050131182902.ZM31426@xxxxxxxxxxxxxxxxxxxxxxx>
Bart Schaefer wrote:
> Is the answer "the file just gets metafied as if it were a binary stream
> and individual modules work it out later"?
Yes, that's about the only sensible way it can work, as far as I can
see. If instead of a shell module it's an argument or output to an
external command, this is the way it needs to work.
> In other words, you assume that nobody will try to use the same .zshrc in
> two different locales, or at least not without wrapping bits of it in
> tests of the value of LC_CTYPE or the like.
Yes, someone has to test at some point. I don't think the shell's
internals have enough information. We *could* bind
(multibyte-?)self-insert to high-eighth-bit characters in UTF-8 locales
by default, I suppose.
> A question that comes to mind is, how will the shell deal with UTF-8
> input when ZLE is not enabled?
I think this relates to the same issue as input from .zshrc, i.e. a
binary stream which has to be dealt with by whatever receives it.
Again, to the extent that the shell doesn't need to process the string
this ought to be OK.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author