svn commit: r270232 - head/tools/tools/vt/keymaps
Jan Beich
jbeich at vfemail.net
Thu Sep 4 14:53:10 UTC 2014
Stefan Esser <se at FreeBSD.org> writes:
> Author: se
> Date: Wed Aug 20 17:07:41 2014
> New Revision: 270232
> URL: http://svnweb.freebsd.org/changeset/base/270232
>
> Log:
> The conversion tools have been further improved and some erroneous
> conversions have been detected and fixed.
[...]
> sub local_to_UCS_code
> {
> my ($char) = @_;
>
> - return prettyprint_token(ord(Encode::decode("UTF-8", local_to_UCS_string($char))));
> + my $ucs_char = ord(Encode::decode("UTF-8", local_to_UCS_string($char)));
> +
> + $current_char = lc(chr($ucs_char)), print("SETCUR: $ucs_char\n")
> + if $current_char eq "";
The script now emits |SETCUR: 123| lines that kbdcontrol(1) doesn't like.
Either removing debug |print| or adding STDERR seems to fix.
$ perl tools/tools/vt/keymaps/convert-keymap.pl \
share/vt/keymaps/us.kbd ASCII >foo.kbd
$ kbdcontrol -l ./foo.kbd </dev/ttyv0
kbdcontrol: invalid key definition
zsh: exit 1
-------------------------------------------------
VFEmail.net - http://www.vfemail.net
ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!
More information about the svn-src-head
mailing list