From owner-freebsd-current@FreeBSD.ORG Thu Nov 11 10:29:51 2010 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 E63741065673 for ; Thu, 11 Nov 2010 10:29:51 +0000 (UTC) (envelope-from eirnym@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7053C8FC22 for ; Thu, 11 Nov 2010 10:29:51 +0000 (UTC) Received: by bwz2 with SMTP id 2so1745910bwz.13 for ; Thu, 11 Nov 2010 02:29:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=/OEP0B5BHjYMNmh1Lw2E1Q8Jh0zzRfTTy97K7nepuk4=; b=NEbQwF4uJFBt3tHIY9IqX+Vq5J4wHJkG4g8r3jYGokYxMk9HXLGzJc8BtB2Ihkp4hr yY5R5u9t79nlocbp0kWz249KWoE9H4aonhf+21RDqM/DOSq/ooHPUsIFM9gz4LdbGaKr cnYSncBS4fjHCw9V462VK6n/AzIamb5Y5kmUg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=rIWE1oxJrsydDMkUqXuPS4/4bkVPgUsr11nnTI3gZvcZQtPBArIrvJfoB0CjCEXksu JD7t+wqSXfad2Ez6FofCaMxzecpIzwejbkxD/K55pWc9ng/tx/g5LcBzCOFnTMv05VrQ oz1RN/HQ6sw8rB/6rnin6l/6kITQIVnJBrKbM= Received: by 10.204.62.139 with SMTP id x11mr1088956bkh.28.1289471389423; Thu, 11 Nov 2010 02:29:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.123.131 with HTTP; Thu, 11 Nov 2010 02:29:29 -0800 (PST) In-Reply-To: <20101109174542.GM2054@hoeg.nl> References: <20101109100319.GV2054@hoeg.nl> <20101109174542.GM2054@hoeg.nl> From: Eir Nym Date: Thu, 11 Nov 2010 13:29:29 +0300 Message-ID: To: Ed Schouten Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Renato Botelho , FreeBSD Mail Lists Subject: Re: Syscons and termcap 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: Thu, 11 Nov 2010 10:29:52 -0000 On 9 November 2010 20:45, Ed Schouten wrote: > * Renato Botelho , 20101109 17:08: >> Well, few weeks ago I moved from ISO-8859-1 to UTF-8 on my Xorg >> environment, and after reading this I decided to make a test. >> >> I rebuilt my 9.0-current (r215031) with option TEKEN_UTF8 in kernel >> config, and after configure my syscons to use cp850-* fonts i can >> see UTF-8 chars properly \o/ > > Well, the point here is that it just performs some really hackish > translation to CP437, not CP850, on the output path. It is really not > robust. Copy-pasting is also broken because of it, because it pastes > CP437 characters. > >> The only thing i cannot do here is to type chars with accent like =C3=A1= =C3=A9 >> on console, because it seems to don't respect deadkeys, when I >> press ' the char ' is show and never wait the next char to compose >> a new one when necessary. Is it a knwon issue or i'm doing >> something wrong? > > This is a known issue, since there is no translation from Unicode code > points to UTF-8 sequences. In other words, if you press =C3=AB, the keybo= ard > layer will properly send a 235 to Syscons, but instead of encoding it as > 0xC3 0xA9, will just emit a single byte, having value 0xE9. > > Maybe a patch like this could already get that working, but it's just a > quick hack. > > =C2=A0 =C2=A0 =C2=A0 =C2=A0http://80386.nl/pub/syscons-utf8.txt > > Greetings, > -- > =C2=A0Ed Schouten > =C2=A0WWW: http://80386.nl/ > Thanks Ed, I'll move back to CONS25 before I can load codepage into kernel. I don't like to always see question marks instread normal characters in SC_PIXEL_MODE. PS: I prefer kernel console driver for some reasons.