From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mta-snd-w06.biglobe.ne.jp (mta-snd-w06.biglobe.ne.jp [27.86.113.22]) by sourceware.org (Postfix) with ESMTPS id 85D133858D38 for ; Tue, 26 Mar 2024 01:44:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 85D133858D38 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=kba.biglobe.ne.jp Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kba.biglobe.ne.jp ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 85D133858D38 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=27.86.113.22 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711417444; cv=none; b=fTsyE1cpN4lqUSHDGMBegocujnVnG7gDgpj8N3KerhPbHHFrwxneWU4y7PzCAt8xty+d52C7l87mif8ClS9Jipkreb7dhiw9eOOX0CcSwAxscF9cUmQA4TRUdiuc3337xapzuT4kCu3LU4DLCK+wGX0AoeCWg8VXOTAMoiiMh7c= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711417444; c=relaxed/simple; bh=pE/R86v3strv7Xe8E1p7sQpUlHfid/OtFX1YV62n6gs=; h=From:Mime-Version:Subject:Date:To:Message-Id; b=h30iloiSR0vDJ6JUj7SG7OmCL9OuA4zfcxef+Rk+vgTtNakF+iPCYwIRBL/anGP1lKo1sj1v1Tayar/+M03efOuB7gYXoyggJUmn1DceGheBB1kcl6Me1c8K7eE79Ml+ZgrTgTYKNb+Xv9bINa/+MOVKHKMLPizz4SSmOVAAwro= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mail.biglobe.ne.jp by mta-snd-w06.biglobe.ne.jp with ESMTP id <20240326014358201.QFKC.3820.mail.biglobe.ne.jp@biglobe.ne.jp> for ; Tue, 26 Mar 2024 10:43:58 +0900 From: "Jun. T" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.4\)) Subject: Re: wctomb() accepts out-of-range character in C-locale Date: Tue, 26 Mar 2024 10:43:57 +0900 References: <7028441.Tto2BC3hUo@nimes> <5DC0BA8B-0B0C-4C91-8F35-C11ACE3E9EF9@kba.biglobe.ne.jp> <000faa1d-91bf-4d90-9e4e-138c4bf889c0@systematicsw.ab.ca> To: newlib@sourceware.org In-Reply-To: <000faa1d-91bf-4d90-9e4e-138c4bf889c0@systematicsw.ab.ca> Message-Id: <96AC13CF-766D-44A9-893A-79E1EFDF9CF0@kba.biglobe.ne.jp> X-Mailer: Apple Mail (2.3696.120.41.1.4) X-Biglobe-Sender: takimoto-j@kba.biglobe.ne.jp X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > 2024/03/26 5:18, brian.inglis@systematicsw.ab.ca wrote: > > POSIX says it, so by definition, it's OK! ;^> I think POSIX doesn't say anything about the 8bit part of the C-locale; it just says it can be implementation dependent. It is newlib that choses the implementation in which chars in 0x80-0xff in C-locale correspond to those chars with the same wide-char values (virtually equivalent to latin1). Other system may chose other implementation, I think.