From nobody Fri Aug 19 21:33:29 2022 X-Original-To: threads@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M8ZkL00f3z4ZDkT for ; Fri, 19 Aug 2022 21:33:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M8ZkK4jttz3m0B for ; Fri, 19 Aug 2022 21:33:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4M8ZkK3lx2z16n3 for ; Fri, 19 Aug 2022 21:33:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 27JLXT8x014738 for ; Fri, 19 Aug 2022 21:33:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 27JLXTj5014737 for threads@FreeBSD.org; Fri, 19 Aug 2022 21:33:29 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: threads@FreeBSD.org Subject: [Bug 265950] POSIX 2008 locale failures when global locale not C Date: Fri, 19 Aug 2022 21:33:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: threads X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: khw@cpan.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: threads@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.mimetype attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Threading List-Archive: https://lists.freebsd.org/archives/freebsd-threads List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-threads@freebsd.org X-BeenThere: freebsd-threads@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660944809; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ltkmu7r6D54Dw04OINVRW8n2BUhBgB6I868LhtEd+wA=; b=HkCz5Yf6drP5C/4nHBfB3+kuvl8lQam7Ek7cia9ws+TVZtB3yRWowW8ftKjoch8BE7wtw0 WSiWLECrsT5gV5llcVfgqJBEDJZr+UYQIj2iJ8UAWXkSVvQcRQY+jklkL3JkS2VrESWi/N ndU/qu2QeNX9WdYfDjE7Ydxbkgj2164/kYr1i8H19eQKYtyihoxGTQ8iZ4gvWtbFtPofHr fJ6MW7wIdQ+kdQaGg/j1DVpZDJxx64jgcuLa2WpOiSggKDAgFuWzBIeIKnGYe5cQD+ojOT Y2jD9bES8PJMUHnRRIU9+DmFgvIRW+cZdGHqkm7C6001lQ+sx+hO0WEv2D3PWQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660944809; a=rsa-sha256; cv=none; b=FxTw0HkDmQMCDJ7ib7Tj2/45vvf6miwWTZ8Mx8P2vzoMnVcF7u/JYm2KLwVLo4C4uuM2+L fLeSb97tJZ1E7p1Zxrv2J7mQB/0/DnCTkqL8iJ0rTFHqvQeh18zFjEqtkwO8GEw/wY0EwD IHuJxWkR90fjtmGbVakCJ3LcM647lMRf9nn4N445pd2B6bSbftEqymAx1MjLhQL/PrvNyr EA9QQHLqAL8KdP0QyPfb9FtKIHw62nUmgzWLJt8vq9YI4imTFQC785LtBpQ8G1XJxAQr70 SCCAZKeuFlm+KXfJgKqgIFJv4DLwBoS3Vxjq75whAQggxqx55zql8kueNkKrTw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265950 Bug ID: 265950 Summary: POSIX 2008 locale failures when global locale not C Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: threads Assignee: threads@FreeBSD.org Reporter: khw@cpan.org Attachment #236019 text/plain mime type: Created attachment 236019 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D236019&action= =3Dedit A short C reproducer program See attached program. setlocale() is used to set up the global locale to C.UTF-8. Then the per-thread calls are used with that as a basis. newlocale(Latin1), then uselocale() of that new object yield an object which doesn't have Latin1 characteristics. This bug does not happen if the global locale is C instead of C.UTF-8. --=20 You are receiving this mail because: You are the assignee for the bug.=