Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Test ./E03posix.ztst was expected to fail, but passed.



> 2022/03/23 6:04, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> 
> On Mon, Mar 21, 2022 at 8:33 PM Jun T <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
> 
>> [2] Why is the test marked "expected to fail"?
> 
> POSIX printf counts bytes regardless of locale, zsh printf counts
> characters in multibyte locales.

>> What does 'F:This is considered a bugfix in zsh' mean?

> Specifically in this instance, we consider it a POSIX bug that '%s'
> always counts byte positions and that zsh has fixed this when it
> counts character positions.

Thanks for the explanation.

If the 'expected to fail' test exists for reminding us that we are
(intentionally?) contradicting with POSIX, the test need be run under
UTF-8 locale (in D07multibyte.ztst), with

>< Stéphane>      # single ' ' before 'S'

as the POSIX-conforming output. Am I right?





Messages sorted by: Reverse Date, Date, Thread, Author