Re: 'teken_utf8_bytes_to_codepoint' [-Wunused-function]
- In reply to: Gary Jennejohn : "'teken_utf8_bytes_to_codepoint' [-Wunused-function]"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 08 Oct 2023 15:52:53 UTC
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 <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 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 AM Gary 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 > >