zsh-workers
 help / color / mirror / code / Atom feed
From: "Jun. T" <takimoto-j@kba.biglobe.ne.jp>
To: zsh-workers@zsh.org
Subject: Re: Test "failure" on multibyte conversions
Date: Sun, 24 Sep 2023 11:10:53 +0900	[thread overview]
Message-ID: <E8375CF7-7CD3-42B7-A89C-2DE3C7F053E7@kba.biglobe.ne.jp> (raw)
In-Reply-To: <CAH+w=7ahJv0_X0VQEGJEnHxAEOx=hhiXHW-iJ-UuYeJduFU1qA@mail.gmail.com>


> 2023/09/24 0:52、Bart Schaefer <schaefer@brasslantern.com> wrote:
> 
> 5.4.0-162-generic #179-Ubuntu
> zsh-5.9-271-ge4e9afe
> 
> ./D04parameter.ztst: starting.
> Test ./D04parameter.ztst failed: bad status 0, expected 1 from:
>  : ${(#X):-0x80}
> Was testing: ${(#X)...}: out-of-range character

I can't reproduce this error (with zsh-5.9-271-ge4e9afe) on
  5.15.0-75-generic #82~20.04.1-Ubuntu
or
  6.2.0-33-generic #33~22.04.1-Ubuntu.

I guess wctomb() behaves differently on your Ubuntu. What do
you get by running the following C code? On my Ubuntu I get -1.

# On my Mac I get 1, but wctomb() is not used on macOS since
# __STDC_ISO_10646__ is not defined.


#include <stdio.h>
#include <locale.h>
#include <stdlib.h>

int main()
{
	char buf[MB_CUR_MAX];
	setlocale(LC_ALL, "C");
	printf("%d\n", wctomb(buf, 0x80));
	return 0;
}



  reply	other threads:[~2023-09-24  2:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-23 15:52 Bart Schaefer
2023-09-24  2:10 ` Jun. T [this message]
2023-09-24 14:00   ` Bart Schaefer
2023-09-26 17:13     ` Jun. T

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=E8375CF7-7CD3-42B7-A89C-2DE3C7F053E7@kba.biglobe.ne.jp \
    --to=takimoto-j@kba.biglobe.ne.jp \
    --cc=zsh-workers@zsh.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 public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).