Luis Javier Merino Morán d9b0d3a9e6 Fix regression: Unix locale encoding is UTF-8
On c7e02ed8 we moved from the deprecated QTextCodec to QStringDecoder
and QStringEncoder.  According to Qt's QStringConverter documentation
and source code, the system ("Locale") encoding in Unix based systems is
assumed to be UTF-8.  So, we should return true on Emulation::utf8()
when the current encoding is the system encoding.

Failure to do so was causing the pty to not have the IUTF8 mode set,
causing problems when backspacing as reported on
https://discuss.kde.org/t/konsole-backspace-utf-8/35608/2
where the reporter Mikhail_Ramendik writes:

  When I use Konsole and press backspace when entering UTF-8 non-ASCII
  text (Cyrillic in my case), weird characters appear in the input that
  the program I run gets. They cause Python programs to crash, being
  unable to process the encoding. If I just do “cat > qqq” and use
  backspace, I get characters like this:

  [mramendi@ramendik-2021 ~]$ cat > qqq
  пеф [backspace was used before the last letter was entered]
  [mramendi@ramendik-2021 ~]$ cat qqq
  пе�ф
2025-08-01 07:54:18 +02:00
2024-07-01 23:29:08 +00:00
2025-08-01 01:52:26 +00:00
2024-08-24 10:18:54 -04:00
2023-12-26 18:44:31 +00:00
2018-09-18 09:36:37 -04:00
2025-02-12 09:32:17 +01:00
2025-02-12 09:32:17 +01:00
2021-08-03 11:31:47 -04:00
2006-07-11 18:17:49 +00:00
2020-06-19 21:02:52 -04:00
2011-06-27 00:45:30 +02:00
2020-06-19 21:03:56 -04:00
2023-06-25 05:46:30 +00:00
2024-09-12 06:59:01 +02:00

Konsole - KDE's Terminal Emulator

Konsole is a terminal program for KDE.

As well as being a standalone program, it is also used by other KDE programs such as the Kate editor and KDevelop development environment to provide easy access to a terminal window. Konsole's features and usage are explained and illustrated in the Konsole handbook, which can be accessed by browsing to help:/konsole in Konqueror.

Directory Structure

Directory Description
/doc/user README files, primarily for advanced users, explaining various aspects of Konsole such as fonts and keyboard handling in-depth.
/doc/developer README files and resources for developers of Konsole. This includes information on the design of Konsole's internals and the VT100 terminal on which Konsole's emulation is based.
/src Source code for Konsole, including the embedded versions of Konsole which are used in Kate, KDevelop and others.
/desktop .desktop files for Konsole, used to launch the program from KDE's various menus and other application launchers.
/data Data files for use with Konsole as well as the keyboard setup and color schemes provided with Konsole.

Contact

Up-to-date information about the latest releases can be found on Konsole's website at https://konsole.kde.org. Discussions about Konsole's development are held on the konsole-devel mailing list, which can be accessed at https://mail.kde.org/mailman/listinfo/konsole-devel.

Description
No description provided
Readme 184 MiB
Languages
C++ 97.3%
CMake 1.1%
C 1%
Shell 0.5%
Python 0.1%