bugThe GNU Hurd - Bugs: bug #48452, termios flag OTILDE conflicts with...

 
 

bug #48452: termios flag OTILDE conflicts with TAB1

Submitted by:  Kalle Olavi Niemitalo <kon>
Submitted on:  Sat 09 Jul 2016 05:47:19 PM UTC  
 
Category: Hurd ServersSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedReproducibility: Every Time
Size (loc): NonePlanned Release: None
Effort: 0.00
Wiki-like text discussion box: 

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 09 Jul 2016 05:47:19 PM UTC, original submission:

In the Hurd, term/term.h defines:

#define OTILDE (1 << 10)

This conflicts with <bits/termios.h>:

# define TAB1 (1 << 10) /* TAB delay type 1. */

So if I do "stty tab1", then the terminal converts each tilde (~) to backslash-backtick (\`), even though that conversion has nothing to do with tabs.

This conflict could be fixed by renumbering OTILDE, and then perhaps moving its definition to termios.h like the comment in term/term.h says. However, I think it's better to remove OTILDE altogether, because:

  • GNU/Linux, NetBSD, OpenBSD, and FreeBSD neither implement an output mode like this nor define an OTILDE macro.
  • stty in coreutils does not have an option specifically for OTILDE.
  • It's not documented in the glibc manual: https://www.gnu.org/software/libc/manual/html_node/Output-Modes.html
  • If the bash prompt contains a tilde (denoting the home directory) and it's converted like this, then readline miscomputes the cursor position.
  • The mode may have been useful for terminals that cannot display a tilde (e.g. Hazeltine 1500), but it's unlikely that anyone is using such terminals with the Hurd nowadays.
Kalle Olavi Niemitalo <kon>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by sthibaul (Updated the item)
  • -unavailable- added by kon (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 16 Aug 2016 09:15:33 PM UTCsthibaulStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1