From nobody Fri Nov 03 12:51:38 2023 X-Original-To: freebsd-arch@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 4SMLGl1mzNz5037v for ; Fri, 3 Nov 2023 12:51:43 +0000 (UTC) (envelope-from christos@freebsd.org) Received: from margiolis.net (mail.margiolis.net [95.179.159.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SMLGk4kLSz4Xkl; Fri, 3 Nov 2023 12:51:42 +0000 (UTC) (envelope-from christos@freebsd.org) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=mail; bh=bZ9QWl6n5qMsKij P5nEpWFAIdEd8r6LahJVkb2t4/Wo=; h=in-reply-to:references:subject:cc:to: from:date; d=margiolis.net; b=euV6UYyrnGqE2ySg5InpRrwiPNSzsWT4sbfFCCXc eUu1WQh7xqC/sxgptB7nRZW8bjDKR9ilXZOd7OumYqtSf5WyzgwWg8mcX+fvzehlVT6TZZ wWHamwxUvM4UweOY3CULdXNb2iqpn/3IrxHs1O+JZjNS6w4OofMudRgi39gMY= Received: from pleb (ppp-94-66-59-115.home.otenet.gr [94.66.59.115]) by margiolis.net (OpenSMTPD) with ESMTPSA id 987ff268 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Fri, 3 Nov 2023 12:51:40 +0000 (UTC) Date: Fri, 3 Nov 2023 14:51:38 +0200 From: Christos Margiolis To: Gary Jennejohn Cc: freebsd-arch@freebsd.org, bojan.novkovic@fer.hr, imp@freebsd.org Subject: Re: HEADS UP: IUTF8 to be enabled by default Message-ID: <6k62glovuqzn6p5bt6hmqw3lwmcigvnnsjv5y66zpi2lpzi7xs@rtlhbrj447sp> References: <20231103081529.016be29d@ernst.home> List-Id: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231103081529.016be29d@ernst.home> X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:20473, ipnet:95.179.144.0/20, country:US] X-Rspamd-Queue-Id: 4SMLGk4kLSz4Xkl Gary Jennejohn wrote: > Use getenv("LANG") and check whether UTF-8 is part of the string? > > My LANG is set to C.UTF-8, for example. tty_init_termios() is a kernel function, so getenv(3) cannot be used. Christos