From nobody Sun Oct 08 15:52:53 2023 X-Original-To: current@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 4S3RX2035pz4wMyd for ; Sun, 8 Oct 2023 15:53:06 +0000 (UTC) (envelope-from oleglelchuk@gmail.com) Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S3RX13fN0z3MRK for ; Sun, 8 Oct 2023 15:53:05 +0000 (UTC) (envelope-from oleglelchuk@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-5a1d0fee86aso45283117b3.2 for ; Sun, 08 Oct 2023 08:53:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696780384; x=1697385184; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6mL8CsOAMcgNgblAPbftbFj1Mqh+/xAE1kEZqECNqLc=; b=RcpPbhD0IGCH6eWCP7EHBJBPLRdiXMBtdmZjBHr9Eb7DjZ0MUt76SCTsyiateVcBE3 Unl73l0awKJdz48nMWR5iRDVfXukdzyPUz7G7sSiiSkB0ThCWntmQgunBjDoPw93/lw1 iG4DuKw7Ie+uTqqmk6ONYZ8FCBRXDlR9GwhDnaoUngfIh/9PM7J8twKFDCiH88M/tqz4 Pah1DN2aHKqezAnuUEUvHxfO6MKYFMSyDbdiBxaTirdYAvsfRh3XUQrg6QeYN6dLf2eP vv6/sXNhfcvCJlYwEX01YRO3ieuDekdbuCOLTPIf9A8KXYMsgH0SLGdvXbvy4iGPHKIB gR/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696780384; x=1697385184; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6mL8CsOAMcgNgblAPbftbFj1Mqh+/xAE1kEZqECNqLc=; b=jXO5cftQw/CUqsqniZH1GBkDA3KMwM1hSKYntIq/i6Q6Lhl3rUdLdipyPrrswhxgxb Xlfxv51OvgpjG5HlRtEE9kyIcQn2WaJYaIDi+X8+e1mrzkqW6XeTn0sDSDWhVTmG67R6 zbPQDOJAOUscgCOVbxBDNoG1jutMK2q9Wisc49iIOFw8V0YACwv+0t7/cw4PPoMKLSKc SIBbfZfDqx6gTSCQBQXGsXs95anuBuaBWdmb+yhdBuN8F/X6q0UMrqkAYcu9d23SQFDl dBswym/zLQNu3U8hJ872rn2juw8MV0fpyNphAly5NiA1Ry+Chu/B5izi0RbeMhzbYIER r2CQ== X-Gm-Message-State: AOJu0Yx4aZUxXthK0Or0pWpoImT9eyAOdCe7xAlnbfm9g1R2kaaCeDtj QL4dc7OD3GaV3cp0b+VpmrUsw5GQLcdjNpNz6dbm1MatG1B8eA== X-Google-Smtp-Source: AGHT+IEW/T+74LZxs/wV+ldnARAkNj8IcDgYeIj1Ko0HBIqHglIjaEsq5wOeTUfqj0/ewh21D2PoHDP6qd+CWRe/mHQ= X-Received: by 2002:a81:7357:0:b0:583:307d:41bc with SMTP id o84-20020a817357000000b00583307d41bcmr14552026ywc.27.1696780384488; Sun, 08 Oct 2023 08:53:04 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: <20231008133431.274b9184@ernst.home> In-Reply-To: <20231008133431.274b9184@ernst.home> From: Oleg Lelchuk Date: Sun, 8 Oct 2023 11:52:53 -0400 Message-ID: Subject: Re: 'teken_utf8_bytes_to_codepoint' [-Wunused-function] To: garyj@gmx.de Cc: current@freebsd.org Content-Type: multipart/alternative; boundary="0000000000001453f3060736785d" 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:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4S3RX13fN0z3MRK --0000000000001453f3060736785d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I typed "stty iutf8" after updating to the latest world and kernel and the backspace key still seems to erase only one byte when erasing Russian letters. For example, I compile this program: #include #include int main() { std::cout << "Enter something: "; std::string sentence; std::getline(std::cin,sentence); std::cout << sentence << std::endl; } And when running the program, I type something using Russian letters, use the backspace key to erase some letters, hit enter, and what I see on the screen is some garbage. My LANG variable is set to C.UTF-8. On Sun, Oct 8, 2023 at 10:00=E2=80=AFAM Gary Jennejohn wrote= : > I just updated my current sources and did a buildworld and buildkernel. > > This warning was spit out, although it didn't result in buildkernel > failing: > > In file included from /usr/src/sys/teken/teken.c:70: > /usr/src/sys/teken/teken_wcwidth.h:128:1: warning: unused function > 'teken_utf8_bytes_to_codepoint' [-Wunused-function] > teken_utf8_bytes_to_codepoint(uint8_t bytes[4], int nbytes) > ^ > 1 warning generated. > > Just FYI. > > -- > Gary Jennejohn > > --0000000000001453f3060736785d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I typed "stty iutf8" after=C2=A0updating to the = latest world and kernel and the backspace key still seems to erase only one= byte when erasing Russian letters. For example, I compile this program:
#include <iostream>
#include <string>

int main()
{
	std::cout << "Enter something: ";
	std::string sentence;
	std::getline(std::cin,sentence);
	std::cout << sentence << std::endl;
}
And when running the program, I type=
 something using Russian letters, use the backspace key to erase some lette=
rs, hit enter, and what I see on the screen is some garbage. My LANG variab=
le is set to C.UTF-8.

On Sun, Oct 8, 2023 at 10:00=E2=80=AFAM Ga= ry Jennejohn <garyj@gmx.de> wrote= :
I just updated= my current sources and did a buildworld and buildkernel.

This warning was spit out, although it didn't result in buildkernel
failing:

In file included from /usr/src/sys/teken/teken.c:70:
/usr/src/sys/teken/teken_wcwidth.h:128:1: warning: unused function
'teken_utf8_bytes_to_codepoint' [-Wunused-function]
teken_utf8_bytes_to_codepoint(uint8_t bytes[4], int nbytes)
^
1 warning generated.

Just FYI.

--
Gary Jennejohn

--0000000000001453f3060736785d--