From owner-freebsd-current@FreeBSD.ORG Sat Aug 23 11:16:45 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C79521065677 for ; Sat, 23 Aug 2008 11:16:45 +0000 (UTC) (envelope-from alexanderchuranov@gmail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.233]) by mx1.freebsd.org (Postfix) with ESMTP id 773788FC17 for ; Sat, 23 Aug 2008 11:16:45 +0000 (UTC) (envelope-from alexanderchuranov@gmail.com) Received: by qb-out-0506.google.com with SMTP id e34so1201933qbe.35 for ; Sat, 23 Aug 2008 04:16:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=Byr3ez9XS/FoCbfUGSxBxGuPds2m5bOXwnzs2H/6KHk=; b=Kvz3jSZOdDej8xxJZ5wOaJswA8peoLYpJiWTzLxVATU5w3UVSmQR2mMOBFWW74cUHz h1zZO7N3JP7XTiCXfO3DIvB2Mq+a5SbWgZ7y4nJQ4/WqdHNEKYR8k7Cd5b/PoE3kq2m5 EtGTRFK0MuKmkubjyIznHqTCQ+7UqQFoP2pps= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=qiSvynE9JJZE7GpoyGoOE/aegr4bZ3gTNtOJ5Q4g51nxenT+Svjyx+r50oaJCQCa6L qxX+jGJaw3v7HmSteF1TSz1ckyXhPkbadZ7vSKcuC9elUrzYSFph7ug14rSZ7XpQ2LXo ixCcwVqAAASXjaydVJWIohr9bALkH0rM8BJ9w= Received: by 10.210.71.12 with SMTP id t12mr3091818eba.146.1219490203932; Sat, 23 Aug 2008 04:16:43 -0700 (PDT) Received: by 10.210.130.15 with HTTP; Sat, 23 Aug 2008 04:16:43 -0700 (PDT) Message-ID: <3cb459ed0808230416w701714e8p7be03e544a964e7b@mail.gmail.com> Date: Sat, 23 Aug 2008 15:16:43 +0400 From: "Alexander Churanov" To: "Thomas Dickey" In-Reply-To: <20080823110406.GB10445@saltmine.radix.net> MIME-Version: 1.0 References: <3cb459ed0808230256g3f0f51epd9ab54047d3bd681@mail.gmail.com> <20080823102656.GE99951@hoeg.nl> <20080823110406.GB10445@saltmine.radix.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Ed Schouten , FreeBSD Current Subject: Re: Unicode-based FreeBSD X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Aug 2008 11:16:45 -0000 Thomas, 2008/8/23, Thomas Dickey : > > ...but it does help if the terminal can display the result. > > ...before IUTF8, there was some consensus for a few years that it was > up to the application to do proper backspacing. (ncurses does this anyway, > but apparently shell interpreters such as bash need extra assistance). > In brief my idea is that system and applications use UTF-8 and syscond just maps UTF-8 to 256 (or whatever) characters it is actually able to display. This is very similar to current screenmaps, but new maps will just describe what 256 characters of the whole unicode range can be actually displayed. Or, in other words, always map from UTF-8. Then, since syscons is going to be unicode-aware, it can do proper backspacing if it is given a sequence of 4 bytes where first 3 describe a single code point and fourth is a backslash. In my opinion, this solution would mostly keep current applications running correctly and introduce the ability to use UTF-8 IO. Alexander Churanov