Date: Tue, 9 Nov 2010 18:45:42 +0100 From: Ed Schouten <ed@80386.nl> To: Renato Botelho <rbgarga@gmail.com> Cc: Eir Nym <eirnym@gmail.com>, FreeBSD Mail Lists <freebsd-current@freebsd.org> Subject: Re: Syscons and termcap Message-ID: <20101109174542.GM2054@hoeg.nl> In-Reply-To: <AANLkTikdrszg4F_zPhCAb3=Hvr28mtfzi8TU3j0LwT_X@mail.gmail.com> References: <AANLkTi=Sd-VpqcBGHy%2BNATC9qL=YY2CcJ1aQ8O3XBk07@mail.gmail.com> <20101109100319.GV2054@hoeg.nl> <AANLkTikdrszg4F_zPhCAb3=Hvr28mtfzi8TU3j0LwT_X@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--UZwaptqO+BtzVOeY Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Renato Botelho <rbgarga@gmail.com>, 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. >=20 > 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 =E1=E9 > 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 =EB, the keyboard 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. http://80386.nl/pub/syscons-utf8.txt Greetings, --=20 Ed Schouten <ed@80386.nl> WWW: http://80386.nl/ --UZwaptqO+BtzVOeY Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkzZiMYACgkQ52SDGA2eCwX9mwCePYMo6g9ZpNm6i4Co6R8sWxaT r9IAnR3YMLIPIyI5BRiNUMFVRfunJjB0 =2SLm -----END PGP SIGNATURE----- --UZwaptqO+BtzVOeY--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101109174542.GM2054>