Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#52044 - [bash] Default console output "[user@system ~]& " can be erased

Attached to Project: Arch Linux
Opened by Alexander Gut (agsel) - Sunday, 04 December 2016, 16:39 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Wednesday, 07 December 2016, 10:59 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Bartłomiej Piotrowski (Barthalion)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The default console output (which shows the actual User/Path) can be erased if the keyboard layout "de-latin1" is used.
You have to type a special character like 'ä', 'ö' or 'ü' then you are able to erase two characters instead of one.

Possibly caused by:
This could be related to UTF-8 which uses two bytes for special letters but only one byte for "normal" letters.

Steps to reproduce:
*open console window*
loadkeys de-latin1
write a special character ('ä' ,'ö' or 'ü')
press backspace twice to erase a additional character
This task depends upon

Closed by  Bartłomiej Piotrowski (Barthalion)
Wednesday, 07 December 2016, 10:59 GMT
Reason for closing:  Upstream
Comment by Doug Newgard (Scimmia) - Sunday, 04 December 2016, 17:43 GMT
Is this specific to one terminal emulator? Or to the shell?
Comment by Alexander Gut (agsel) - Sunday, 04 December 2016, 21:51 GMT
I am not really sure about the difference between both.
But this happens in the "Console"-Window of "KDE 5-Plasma" and in the Console which is accessible via [CTRL]+[ALT]+[F2,F3,...]
Comment by Doug Newgard (Scimmia) - Sunday, 04 December 2016, 22:33 GMT
So that rules out a terminal emulator problem. I'm guessing it's a bash problem, then (assuming you're using bash?); can you try it with a different shell?
Comment by Alexander Gut (agsel) - Sunday, 04 December 2016, 23:48 GMT
It must be a visual bug. I am able to write a command which is then successfully recognized even if the half of my "default" output was erased. Resizing of the console window was also a method to fix it.


I tried different shells with the following results:

Bash (not OK):
- I was able to erase the output "[agsel@hostsys ~]$ "
- Each 'ä' typed allows to erase one additional character

Dash (OK):
- I was NOT able to erase the output "$ "

CShell (not OK):
- I was NOT able to erase the output "> "
- Pressing button 'ä' did just show the two bytes used to decode/encode: "\303\244"
- Pressing backspace did erase only one byte (first "\244" then "\303")

Fish (not OK):
- I was able to erase the output "agsel@hostsys ~> ".
- The pointer location did not move after I typed 'ä'.
- the letter 'ä' was written at the location of the pointer and an additional 'ä' was written before the pointer position
- 1. Time pressing backspace did erase both, the written 'ä' and the one which was not created by myself
- 2. Time pressing backspace did erase an additional character
Comment by Doug Newgard (Scimmia) - Monday, 05 December 2016, 02:30 GMT
So definitely sounds like a bash (and possibly fish) issue.

Loading...