Red Hat Bugzilla – Bug 1273895
Printing troubles of wide and single-byte character sequences using LANG=C
Last modified: 2016-03-31 06:56:35 EDT
+++ This bug was initially created as a clone of Bug #717367 +++
Description of problem:
tcsh has some troubles with printing sequences of wide (eg. 'ö') and single-byte ASCII characters (eg. 'a') using LANG=C.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Set LANG=C
2. Start tcsh
3. Type a wide character (eg. 'ö')
4. Type any single-byte ASCII character (eg. 'a')
The single character is printed 6 times instead of just once. For example when "öa" is typed, "aaaaaa" is printed.
The single character shall be printed just once, as expected.
The bug was revealed in bug 676305 comment 5.
--- Additional comment from Fridolín Pokorný on 2013-04-12 05:37:09 EDT ---
This bug was fixed in upstream in tcsh-6.17.03. Attached solution extracted from upstream patch.
For some reason I have cloned this BZ by a mistake. This issue is not present in current TCSH release, this has been already fixed in TCSH 6.17.03 (current base for RHEL7 is TCSH 6.18.01).
List of changes between 6.17.00 and 6.17.03:
Commit fixing the issue:
(You can easily lookup in the fist link that it is part of it.)
I have also tested the behaviour and it is correct:
~ export LANG=C
$ (writing ö character)