Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752317AbdDCUcQ (ORCPT ); Mon, 3 Apr 2017 16:32:16 -0400 Received: from tartarus.angband.pl ([89.206.35.136]:37787 "EHLO tartarus.angband.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751342AbdDCUcN (ORCPT ); Mon, 3 Apr 2017 16:32:13 -0400 Date: Mon, 3 Apr 2017 22:32:04 +0200 From: Adam Borowski To: Nicolas Pitre Cc: Andi Kleen , Andy Shevchenko , Greg Kroah-Hartman , Jiri Slaby , "linux-serial@vger.kernel.org" , "linux-kernel@vger.kernel.org" , linux-arm Mailing List Subject: Re: [PATCH v2 0/5] minitty: a minimal TTY layer alternative for embedded systems Message-ID: <20170403203204.2guyy63fkqwxpq4o@angband.pl> References: <20170401222119.25106-1-nicolas.pitre@linaro.org> <87pogur0y9.fsf@firstfloor.org> <20170403153103.GB22592@two.firstfloor.org> <20170403195756.xitzpei2knmwt3sx@angband.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Junkbait: aaron@angband.pl, zzyx@angband.pl User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: kilobyte@angband.pl X-SA-Exim-Scanned: No (on tartarus.angband.pl); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1523 Lines: 40 On Mon, Apr 03, 2017 at 04:09:38PM -0400, Nicolas Pitre wrote: > On Mon, 3 Apr 2017, Adam Borowski wrote: > > > On Mon, Apr 03, 2017 at 08:31:03AM -0700, Andi Kleen wrote: > > > Except for that (and possibly VT) it is unlikely that people really > > > rely on the obsolete terminal features from the 70ies. So it's a kind > > > of cleanup. > > > > But... but... but what shall we do without OLCUC?!? > > > > I guess sending these features to the pasture would be nice even in > > mainstream TTY. Probably even without a Kconfig option to restore them. > > Thing is... those arcane features don't take much code at all: > > if (O_OLCUC(tty)) > c = toupper(c); > > That's it. I didn't make the minitty code 5x smaller just by omitting > those. ;-) Except, those two lines have two bugs: * it mangles most non-ASCII (kernel's toupper() hard-codes ISO-8859-1 which no one uses anymore) * it mangles a number of ANSI codes, making them unusable on any vt100ish terminal (ie, any post-1980) I just happened to send an April Fools pull request (https://github.com/kilobyte/linux.git runes) in which the first commit fixes these: https://github.com/kilobyte/linux/commit/268cde7c6dde54fcbc81df68d66b2389d77d01f2 Even though it's a real fix (unlike the subsequent fun), guess why I'm not sending it to Greg and Jiri... -- ⢀⣴⠾⠻⢶⣦⠀ Meow! ⣾⠁⢠⠒⠀⣿⡁ ⢿⡄⠘⠷⠚⠋⠀ Collisions shmolisions, let's see them find a collision or second ⠈⠳⣄⠀⠀⠀⠀ preimage for double rot13!