Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: printf %<n>s in UTF-8 is not always POSIX-compliant
- X-seq: zsh-workers 30229
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: printf %<n>s in UTF-8 is not always POSIX-compliant
- Date: Wed, 15 Feb 2012 15:42:15 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1329316937; bh=TdRrmSaiCAudLhFgS9t9S6IbF7E0BkiAukXek0EWF2s=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:In-reply-to:From:References:To:Subject:Date:Message-ID; b=A/qJvt6g9QhkCUfZFIv3CN9RBqYGb+4N5uzAKjW3VBhck/r8jCqfqyVYxxlZ8JILTHW3l54SCq3o680kHBaml9fuS47wb7cdpeCQ6z9GutoDB1BFR4hqJtvbILpP0a5iEpSGnDQicZL0uXJfbcggRjEtwX0Zb9EKqoVQCcNKh9g=
- In-reply-to: <120215001413.ZM22585@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20120215021519.GA19525@xvii.vinc17.org> <120215001413.ZM22585@torch.brasslantern.com>
Bart wrote:
>
> Am I understanding correctly that the intent here is that é is a two-
> byte character so %2s should print the two literal bytes, rather than
> print the single logical character in a field two logical characters
> wide?
That's correct. The POSIX definition uses bytes. For multibyte
behaviour, there is an L modifier. I don't really see the sense in it
myself: I don't want to write low-level stuff in the shell.
Frank Terbeck wrote:
> Frankly, that would be the vendor's fault then. There are many *MANY*
> ksh implementations, that make for a reasonable link target (ksh93,
> pdksh or mksh - to name just a few). Zsh is not one of them.
The fact that zsh is far from a perfect emulation doesn't stop it from
being useful. I don't necessarily want to install a separate ksh package
and zsh will run ksh scripts at least as well as pdksh.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author