platform/upstream/kbd.git
13 years agoloadkeys: Fix some memory leaks
Alexey Gladkov [Sat, 5 Feb 2011 14:40:34 +0000 (17:40 +0300)]
loadkeys: Fix some memory leaks

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
13 years agofindfile: Reduce memory usage and simplify code
Alexey Gladkov [Wed, 2 Feb 2011 23:20:45 +0000 (02:20 +0300)]
findfile: Reduce memory usage and simplify code

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
13 years agoMove search by fullname into separate function
Alexey Gladkov [Tue, 25 Jan 2011 07:20:02 +0000 (10:20 +0300)]
Move search by fullname into separate function

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
13 years agofindfile(): Remove duplicate declarations
Alexey Gladkov [Tue, 25 Jan 2011 00:31:42 +0000 (03:31 +0300)]
findfile(): Remove duplicate declarations

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
13 years agofindfile: Simplify loop code
Alexey Gladkov [Mon, 24 Jan 2011 22:37:03 +0000 (01:37 +0300)]
findfile: Simplify loop code

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
13 years agoAdd xstrndup()
Alexey Gladkov [Mon, 24 Jan 2011 21:32:42 +0000 (00:32 +0300)]
Add xstrndup()

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
13 years agoloadkeys: Fix some memory leaks
Alexey Gladkov [Sun, 23 Jan 2011 01:34:33 +0000 (04:34 +0300)]
loadkeys: Fix some memory leaks

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
13 years agoAdd LatGrkCyr fonts
Alexey Gladkov [Sun, 23 Jan 2011 01:31:12 +0000 (04:31 +0300)]
Add LatGrkCyr fonts

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
13 years agoUse MAXPATHLEN constant
Alexey Gladkov [Mon, 10 Jan 2011 19:28:25 +0000 (22:28 +0300)]
Use MAXPATHLEN constant

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
13 years agoDrop klibc support
Alexey Gladkov [Fri, 7 Jan 2011 21:37:45 +0000 (00:37 +0300)]
Drop klibc support

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
14 years agoFix "compose as usual" for Unicode diacritics
Michael Schutte [Wed, 13 Oct 2010 15:07:26 +0000 (17:07 +0200)]
Fix "compose as usual" for Unicode diacritics

struct ccc in compose_as_usua[() uses three char members of unspecified
signedness; in case the compiler decides that they should be signed,
negative integers will end up in the accent table for c3 > 127.

Avoid the problem by explicitly using unsigned chars.

Signed-off-by: Michael Schutte <michi@uiae.at>
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
14 years ago[consolefonts]: Add unicode spaces
Nicolas Delvaux [Wed, 8 Sep 2010 21:01:00 +0000 (01:01 +0400)]
[consolefonts]: Add unicode spaces

This was only a partial fix, because fonts that don't have a build-in
Unicode map were still defective.
So I made a patch to update all unimaps files (so the 'data/unimaps'
folder).

You can get it here: http://malaria.perso.sfr.fr/kbd/unimaps.patch

I also made a tar.gz with an updated 'data/consolefonts' folder (thanks
to my script). You can download it here:
http://malaria.perso.sfr.fr/kbd/updated_consolefonts.tar.gz

So, basically, if you apply this patch and replace all fonts by their
updated version, then your KBD will support all Unicode spaces (and so
the 'narrow no-break space' which is the one I primarily want).

You can test with "/usr/bin/printf '\uCODEx\n'" where 'CODE' can be
0020, 00a0, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
200a or 202f.
(Yes, all are different kinds of Unicode spaces. See this site if you
want more details about each char:
http://www.fileformat.info/info/unicode/char/search.htm )

Signed-off-by: Nicolas Delvaux <nicolas.delvaux@gmx.com>
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
14 years agoReplace index() and rindex() with strchr() and strrchr()
Maarten ter Huurne [Sun, 25 Jul 2010 13:06:42 +0000 (17:06 +0400)]
Replace index() and rindex() with strchr() and strrchr()

Hi Alexey,

Attached is a patch for kbd-1.15.2. It replaces index() and rindex() with
strchr() and strrchr().

The man page of rindex says:
4.3BSD; marked as LEGACY in POSIX.1-2001. POSIX.1-2008 removes the
specifications of index() and rindex(), recommending strchr(3) and
strrchr(3) instead.

I tried to compile kbd for a uClibc based embedded system. First I got
compile errors about missing prototypes for index() and rindex(), which were
fixed by adding an include of <strings.h> (not <string.h> which was already
included). However, this only lead to a link error on index and rindex. It
seems uClibc, depending on some #defines, can either have no definition for
(r)index, a prototype (extern) declaration or a macro definition
substituting (r)index by str(r)chr.

I figured it was simpler to just replace index() and rindex() with strchr()
and strrchr() in the source code than to figure out what #defines are needed
to make it work. Most likely it is also more future proof. If you agree,
please apply the attached patch.

Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
14 years agoDo not set prefer_unicode for iso-8859-1
Alexey Gladkov [Mon, 5 Jul 2010 21:44:00 +0000 (01:44 +0400)]
Do not set prefer_unicode for iso-8859-1

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
14 years agoloadkeys -a: Switch to ASCII mode
Alexey Gladkov [Wed, 30 Jun 2010 13:56:16 +0000 (17:56 +0400)]
loadkeys -a: Switch to ASCII mode

This change is introduced in order to be forced to stay
in ASCII mode to Unicode console, see http://bugs.gentoo.org/324351.

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
14 years agoDon't open console on --bkeymap
Olivier Mehani [Sun, 25 Apr 2010 07:12:08 +0000 (17:12 +1000)]
Don't open console on --bkeymap

Check that -b hasn't specified, similarly to -m, before loadkeys tries to open
the console. As for --mktable, --bkeymap doesn't need it. This allows to dump
binary keymaps in a larger range of situations where ownership of the console
device is not guarranteed e.g., when running from an Xterm.

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
14 years agoRemove obsolete file
Alexey Gladkov [Sat, 10 Apr 2010 21:32:24 +0000 (01:32 +0400)]
Remove obsolete file

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
14 years agoChange automake behavior
Alexey Gladkov [Sat, 10 Apr 2010 21:21:46 +0000 (01:21 +0400)]
Change automake behavior

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
14 years agoUpdate po/ directory
Alexey Gladkov [Sat, 10 Apr 2010 21:19:59 +0000 (01:19 +0400)]
Update po/ directory

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
14 years agoMakefile.am: Add ACLOCAL_AMFLAGS variable to handle m4/ directory
Alexey Gladkov [Thu, 8 Apr 2010 16:50:03 +0000 (20:50 +0400)]
Makefile.am: Add ACLOCAL_AMFLAGS variable to handle m4/ directory

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
14 years agoUpdate changelog and increase version
Alexey Gladkov [Fri, 2 Apr 2010 01:09:40 +0000 (05:09 +0400)]
Update changelog and increase version

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
14 years ago[keymaps] Fix colemak installation
Alexey Gladkov [Sun, 28 Feb 2010 14:14:59 +0000 (17:14 +0300)]
[keymaps] Fix colemak installation

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
14 years ago[keymaps] Add "mobii" specific keymap
Richard Zidlicky [Sun, 28 Feb 2010 13:51:34 +0000 (16:51 +0300)]
[keymaps] Add "mobii" specific keymap

I have a modified keymap for my "Mobii Point of View" Netbook (1st generation).
It is a i386/qwertz/de-latin1* keyboard with some switched keys, my changes are
this:

keycode  43 =  less greater bar
keycode  126 = Find
keycode  102 = numbersign apostrophe

Signed-off-by: Richard Zidlicky <rz@linux-m68k.org>
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
14 years agovcstime: Fix build warning
Alexey Gladkov [Sun, 3 Jan 2010 00:17:38 +0000 (03:17 +0300)]
vcstime: Fix build warning

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
14 years agovcstime: Use either /dev/vcs[a] or /dev/vcs[a]0
Michael Schutte [Sat, 2 Jan 2010 16:34:41 +0000 (17:34 +0100)]
vcstime: Use either /dev/vcs[a] or /dev/vcs[a]0

Make vcstime work on all systems by considering both /dev/vcs and
/dev/vcs0 to hold the console memory for the current VT.

Signed-off-by: Michael Schutte <michi@uiae.at>
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
14 years agopsffontop: Fix possible alignment issues, wrt -Wcast-align
Alexey Gladkov [Wed, 2 Dec 2009 23:48:07 +0000 (02:48 +0300)]
psffontop: Fix possible alignment issues, wrt -Wcast-align

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
14 years agoAdd georgian font
Alexey Gladkov [Sat, 28 Nov 2009 22:55:25 +0000 (01:55 +0300)]
Add georgian font

Font content is same as for LatArCyrHeb font, but georgian one is added
instead of "Ar". Font created by Levani Shoshiashvili <shoshia@hotmail.com>

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
14 years agoRegenerate loadkeys.c
Alexey Gladkov [Sun, 22 Nov 2009 19:25:42 +0000 (22:25 +0300)]
Regenerate loadkeys.c

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
14 years agopo: update indonesian translation
Alexey Gladkov [Sun, 22 Nov 2009 19:24:01 +0000 (22:24 +0300)]
po: update indonesian translation

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
14 years agoFix translation
Alexey Gladkov [Sun, 22 Nov 2009 19:17:55 +0000 (22:17 +0300)]
Fix translation

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
14 years ago[build] Use automake to build translations
Alexey Gladkov [Fri, 20 Nov 2009 00:21:35 +0000 (03:21 +0300)]
[build] Use automake to build translations

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
14 years ago[kbd] [PATCH] loadkeys -u: Switch to Unicode mode, if necessary
Michael Schutte [Sun, 15 Nov 2009 15:34:16 +0000 (16:34 +0100)]
[kbd] [PATCH] loadkeys -u: Switch to Unicode mode, if necessary

Make defkeys() KDSKBMODE to K_UNICODE before it starts to do KDSKBENT
ioctls. Switch back to the preceding keyboard mode after defining keys.

This change is introduced for compatibility reasons, see
http://bugs.gentoo.org/289265. As a minor difference, the warning
message telling users to run "kbd_mode -u" is printed whenever
"loadkeys -u" is used, not only when actual Unicode keysyms are loaded.

Signed-off-by: Michael Schutte <michi@uiae.at>
15 years agopo: update translations
Alexey Gladkov [Fri, 9 Oct 2009 13:36:06 +0000 (17:36 +0400)]
po: update translations

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
15 years ago[keymaps] Add Tajik keymap
Alexey Gladkov [Mon, 21 Sep 2009 11:09:24 +0000 (15:09 +0400)]
[keymaps] Add Tajik keymap

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
15 years agoUpdate changelog and increase version
Alexey Gladkov [Sun, 13 Sep 2009 10:21:26 +0000 (14:21 +0400)]
Update changelog and increase version

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
15 years agoAdd depcomp
Alexey Gladkov [Sun, 13 Sep 2009 09:42:55 +0000 (13:42 +0400)]
Add depcomp

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
15 years ago[BUILD] Fix problems at cross-compiling
Alexey Gladkov [Mon, 24 Aug 2009 11:19:22 +0000 (15:19 +0400)]
[BUILD] Fix problems at cross-compiling

Hello,

I'm trying to cross-compile kbd-1.14. I configured it with the following arguments:

--prefix=/usr --build=i686-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --disable-nls

I get the following error message:

configure: error: cannot check setpgrp when cross compiling

I can fix it by adding ac_cv_func_setpgrp_void=yes to the configure arguments list,
but I wonder if this is the normal and recommended way to proceed or if it is a bug.

Also, I cannot run "make" successfully because of the following error message:

mapscrn-xmalloc.o: In function `xrealloc':
xmalloc.c:(.text+0x67): undefined reference to `rpl_realloc'
mapscrn-xmalloc.o: In function `xmalloc':
xmalloc.c:(.text+0xa7): undefined reference to `rpl_malloc'
mapscrn-kdmapop.o: In function `getunimap':
kdmapop.c:(.text+0x248): undefined reference to `rpl_malloc'
collect2: ld returned 1 exit status

I can fix it by adding ac_cv_func_malloc_0_nonnull=yes and ac_cv_func_realloc_0_nonnull=yes
to the configure arguments list. I have the same doubt as before.

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years agoEnable UNUMBERs in compose definitions
Michael Schutte [Fri, 24 Jul 2009 10:28:27 +0000 (12:28 +0200)]
Enable UNUMBERs in compose definitions

As always, auto-conversion applies in case of XLATE mode (or no
KDSKBDIACRUC support).

Since 18eadfe…, loadkeys supports the composition of two Unicode keysyms
to another Unicode keysym.  Whereas the resulting char could already be
specified as U+…, diacr and base had to be given as 8-bit characters,
which is ugly with today’s Unicode support.  Since it isn’t realistic to
make keymaps capable of UTF-8, I was asked by a Debian developer to at
least make it possible to specify Unicode codepoints.  rvalue is
unsuitable at this point (because it does some trickery with KT_LATIN
vs. KT_LETTER which is not applicable here), I decided to add this to a
new expression just for compose.

Signed-off-by: Michael Schutte <michi@uiae.at>
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
15 years agoNever handle plain ASCII characters as Unicode
Michael Schutte [Fri, 24 Jul 2009 11:55:20 +0000 (13:55 +0200)]
Never handle plain ASCII characters as Unicode

This doesn’t seem to work for compose: The Unicode keysym representing
an ASCII char gets inserted and the kernel waits for another keypress to
be “dead”.

Signed-off-by: Michael Schutte <michi@uiae.at>
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years agoAdd support for Brl_dot9 and Brl_dot10
Michael Schutte [Wed, 17 Jun 2009 18:05:08 +0000 (20:05 +0200)]
Add support for Brl_dot9 and Brl_dot10

The keysyms have been supported by Linux kernels since 2.6.23.

This patch was submitted by Samuel Thibault <sthibault@debian.org>.

Signed-off-by: Michael Schutte <michi@uiae.at>
15 years ago[keymaps] Add French keymap Dvorak
Alexey Gladkov [Sat, 13 Jun 2009 13:16:38 +0000 (17:16 +0400)]
[keymaps] Add French keymap Dvorak

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years ago[keymaps] Add UK keymap for the Sun Type-6 keyboard
Alexey Gladkov [Sat, 13 Jun 2009 12:37:42 +0000 (16:37 +0400)]
[keymaps] Add UK keymap for the Sun Type-6 keyboard

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years ago[keymaps] Add keymap for German Intel based Macs
Alexey Gladkov [Sat, 13 Jun 2009 12:34:54 +0000 (16:34 +0400)]
[keymaps] Add keymap for German Intel based Macs

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years agoUpdate setkeycodes manpage information about hardwired keycodes
Michael Schutte [Thu, 11 Jun 2009 18:38:25 +0000 (20:38 +0200)]
Update setkeycodes manpage information about hardwired keycodes

At least newer kernels don’t use hardwired scancode-keycode mappings.
Rephrase the affected part of the setkeycodes(8) manpage.

Signed-off-by: Michael Schutte <michi@uiae.at>
15 years agoReplace “-” by “\-” in some manpages when options are mentioned
Michael Schutte [Thu, 11 Jun 2009 18:38:17 +0000 (20:38 +0200)]
Replace “-” by “\-” in some manpages when options are mentioned

“-” is treated as a hyphen (U+2010) by groff.  “\-” is the intended
ASCII minus sign.

Signed-off-by: Michael Schutte <michi@uiae.at>
15 years ago[keymaps] Add keymap for Colemak
Alexey Gladkov [Tue, 9 Jun 2009 18:26:48 +0000 (22:26 +0400)]
[keymaps] Add keymap for Colemak

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years agoMerge branch 'klibc/1.15-dev'
Alexey Gladkov [Mon, 8 Jun 2009 11:26:22 +0000 (15:26 +0400)]
Merge branch 'klibc/1.15-dev'

Conflicts:
src/loadkeys.c

15 years agodumpkeys: Use U+… in “compose” lines if KDGKBDIACRUC is available
Michael Schutte [Mon, 1 Jun 2009 09:21:05 +0000 (11:21 +0200)]
dumpkeys: Use U+… in “compose” lines if KDGKBDIACRUC is available

This makes dumpkeys | loadkeys idempotent even if no “-c charset” option
is used with dumpkeys.

Signed-off-by: Michael Schutte <michi@uiae.at>
15 years agoAdd documentation for loadkeys’s -q option to loadkeys.y
Michael Schutte [Mon, 1 Jun 2009 09:21:04 +0000 (11:21 +0200)]
Add documentation for loadkeys’s -q option to loadkeys.y

86d0ca1 only altered loadkeys.c.  Subsequent modifications to the yacc
source file loadkeys.y made this change disappear again.

Signed-off-by: Michael Schutte <michi@uiae.at>
15 years ago[BUILD] klibc port
Alexey Gladkov [Thu, 21 May 2009 19:51:50 +0000 (23:51 +0400)]
[BUILD] klibc port

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years agoshowconsolefont: Print adequate space chars
Michael Schutte [Mon, 18 May 2009 17:47:00 +0000 (19:47 +0200)]
showconsolefont: Print adequate space chars

Figure out whether the console is in Unicode or XLATE mode to decide
whether to use a direct-to-font (U+F020) or a simple ASCII space
character, respectively.  This avoids showconsolefont’s output becoming
a mess, cf. <http://bugs.debian.org/528357>.

Signed-off-by: Michael Schutte <michi@uiae.at>
15 years agoMerge branch 'auto-convert-keymaps'
Alexey Gladkov [Mon, 18 May 2009 20:49:40 +0000 (00:49 +0400)]
Merge branch 'auto-convert-keymaps'

15 years agoClarify convert_code() and ksymtocode()
Michael Schutte [Sat, 9 May 2009 17:38:26 +0000 (19:38 +0200)]
Clarify convert_code() and ksymtocode()

Use the direction constants defined in ksyms.h instead of some ugly
boolean jugglery.

Signed-off-by: Michael Schutte <michi@uiae.at>
15 years agoUse static memory for chosen_charset
Michael Schutte [Sat, 9 May 2009 17:29:16 +0000 (19:29 +0200)]
Use static memory for chosen_charset

Signed-off-by: Michael Schutte <michi@uiae.at>
15 years agoRename kir_alt_sh-UTF-8.map -> ky_alt_sh-UTF-8.map
Alexey Gladkov [Thu, 7 May 2009 10:54:30 +0000 (14:54 +0400)]
Rename kir_alt_sh-UTF-8.map -> ky_alt_sh-UTF-8.map

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years agoRegenerate analyze.c and loadkeys.c
Michael Schutte [Fri, 1 May 2009 18:30:33 +0000 (20:30 +0200)]
Regenerate analyze.c and loadkeys.c

Signed-off-by: Michael Schutte <michi@uiae.at>
15 years agoSupport Unicode compose tables
Michael Schutte [Tue, 28 Apr 2009 13:45:28 +0000 (15:45 +0200)]
Support Unicode compose tables

Use KDSKBDIACRUC, kbdiacruc etc., if available, to allow the use of
composed characters from more than a single 8-bit charset.  Because the
majority of the existing keymaps uses “compose '…' '…' to '…'”
specifications which allow only 8-bit characters, perform automatical
conversions using the existing infrastructure.

Signed-off-by: Michael Schutte <michi@uiae.at>
15 years agoSupport bidirectional conversion of keysyms
Michael Schutte [Tue, 28 Apr 2009 13:27:44 +0000 (15:27 +0200)]
Support bidirectional conversion of keysyms

Enhance ksymtocode() and convert_code() to accept a “direction”
parameter which can be one of TO_UNICODE, TO_8BIT or TO_AUTO.  The
latter enables the old behavior of using prefer_unicode.

This prepares the codebase for another patch to make loadkeys convert
diacriticals (for the KD?KBDIACRUC ioctls present in newer kernels).

Signed-off-by: Michael Schutte <michi@uiae.at>
15 years ago[keymaps] Add Kirghiz keymap
Alexey Gladkov [Sun, 26 Apr 2009 12:09:49 +0000 (16:09 +0400)]
[keymaps] Add Kirghiz keymap

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years agoFix two problems with the keymap auto-conversion patch
Michael Schutte [Sat, 25 Apr 2009 14:41:41 +0000 (16:41 +0200)]
Fix two problems with the keymap auto-conversion patch

* Correctly resolve plain ASCII characters in codetoksym.  The original
  auto-conversion patch handles keysyms smaller than 0x80 incorrectly if
  prefer_unicode is set.

* Avoid a memory leak in set_charset.

Signed-off-by: Michael Schutte <michi@uiae.at>
15 years agoRegenerate loadkeys.c
Alexey Gladkov [Tue, 21 Apr 2009 10:22:15 +0000 (14:22 +0400)]
Regenerate loadkeys.c

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years agoloadkeys: Auto-convert “traditional”/Unicode keysyms
Michael Schutte [Tue, 14 Apr 2009 08:46:32 +0000 (10:46 +0200)]
loadkeys: Auto-convert “traditional”/Unicode keysyms

The Linux kernel distinguishes between K(KTYP, KVAL) keysyms and Unicode
characters.  This patch makes loadkeys query the console’s Unicode mode
and convert between the two keysym types according to the result.  The
theoretical advantage is that less keymaps need both an 8-bit and a
Unicode variant (cf. trq[u], ua[-utf]).

A similar patch (read_keymaps_fmt) has been in use in Debian’s version
of kbd since 2004; see <http://bugs.debian.org/251550> for a discussion.
Credit for this goes to Denis Barbier <barbier@linuxfr.org>.

Signed-off-by: Michael Schutte <michi@uiae.at>
15 years agoloadkeys: Document -q option
Alexey Gladkov [Wed, 8 Apr 2009 11:32:39 +0000 (15:32 +0400)]
loadkeys: Document -q option

Hi,

the -q option of loadkeys isn't documented anywhere,
attached patch will mention it in --help and manpage.

Best regards,
Vitezslav Crhonek

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years ago[consolefonts] Add U+2010, U+2012, U+2013, U+2018, U+2019, U+2212 to the embedded...
Alexey Gladkov [Fri, 6 Mar 2009 23:54:27 +0000 (02:54 +0300)]
[consolefonts] Add U+2010, U+2012, U+2013, U+2018, U+2019, U+2212 to the embedded character table

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years ago[keymaps] bg_pho-utf8 keycode 38 assignment fix
Alexey Gladkov [Fri, 6 Mar 2009 16:31:46 +0000 (19:31 +0300)]
[keymaps] bg_pho-utf8 keycode 38 assignment fix

I noticed that when using the bulgarian phonetic utf8 keymap, a cyrillic
"i" was output instead of a cyrillic "l".

Signed-off-by: Dimiter Petrov <dimiter.p@gmail.com>
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years agoUpdate .gitignore
Alexey Gladkov [Fri, 6 Mar 2009 16:18:14 +0000 (19:18 +0300)]
Update .gitignore

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years agoUpdate analyze.c
Alexey Gladkov [Fri, 6 Mar 2009 16:03:06 +0000 (19:03 +0300)]
Update analyze.c

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years agoFix format error
Alexey Gladkov [Thu, 5 Mar 2009 21:09:28 +0000 (00:09 +0300)]
Fix format error

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years ago[BUILD] Fix build warnings
Alexey Gladkov [Tue, 3 Mar 2009 16:14:07 +0000 (19:14 +0300)]
[BUILD] Fix build warnings

Fix strict gcc warnings that come from using:

-Wall -Wextra -Wmissing-noreturn -Wdisabled-optimization -Wcast-align
-Wshadow -Wmissing-format-attribute -Wmissing-prototypes -Wstrict-prototypes
-Wmissing-declarations

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years agoFix errors when building with -Werror=format-security gcc option
Herton Ronaldo Krzesinski [Tue, 10 Feb 2009 13:31:55 +0000 (11:31 -0200)]
Fix errors when building with -Werror=format-security gcc option

Signed-off-by: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years agokbd_mode(1): Document the -C option
Michael Schutte [Thu, 25 Dec 2008 20:22:24 +0000 (23:22 +0300)]
kbd_mode(1): Document the -C option

Signed-off-by: Michael Schutte <michi@uiae.at>
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years ago[keymaps] Use -n option for gzip command
Alexey Gladkov [Sun, 21 Dec 2008 10:45:07 +0000 (13:45 +0300)]
[keymaps] Use -n option for gzip command

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years agoRemove kbio.h include
Alexey Gladkov [Sun, 21 Dec 2008 10:06:22 +0000 (13:06 +0300)]
Remove kbio.h include

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years agopo: update po/ stuff
Alexey Gladkov [Mon, 1 Dec 2008 19:51:35 +0000 (22:51 +0300)]
po: update po/ stuff

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years agoUpdate changelog and increase version
Alexey Gladkov [Wed, 19 Nov 2008 18:09:57 +0000 (21:09 +0300)]
Update changelog and increase version

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years agobe-latin1 keycode 7 assignment fix
Herton Ronaldo Krzesinski [Thu, 13 Nov 2008 21:14:08 +0000 (19:14 -0200)]
be-latin1 keycode 7 assignment fix

Looking at the picture of a belgian keyboard layout, keycode 7 main bind is
wrong, should be section instead of paragraph.

Signed-off-by: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years agopo/cat-id-tbl.c: Update messages
Alexey Gladkov [Tue, 18 Nov 2008 12:52:55 +0000 (15:52 +0300)]
po/cat-id-tbl.c: Update messages

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
15 years agoanalyze.l: Add warning for on U+xxxx keysym specifications >= 0xf000
Alexey Gladkov [Tue, 18 Nov 2008 12:50:35 +0000 (15:50 +0300)]
analyze.l: Add warning for on U+xxxx keysym specifications >= 0xf000

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
16 years agoiso07u-16.psfu: Update font
Lefteris Dimitroulakis [Sat, 1 Nov 2008 10:57:03 +0000 (13:57 +0300)]
iso07u-16.psfu: Update font

Attached iso.07-16.psfu font with
euro sign , drachma sign, greek ipogegrammeni
added. Also minor maping corrections.

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
16 years ago[consoletrans] Update 8859-7_to_uni.trans
Alexey Gladkov [Thu, 30 Oct 2008 12:51:21 +0000 (15:51 +0300)]
[consoletrans] Update 8859-7_to_uni.trans

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
16 years agoPrint an error message when calls to exec* functions fail
Michael Schutte [Thu, 14 Aug 2008 08:47:25 +0000 (10:47 +0200)]
Print an error message when calls to exec* functions fail

Patch proposed by Ian Jackson <ian@chiark.greenend.co.uk> on
<http://bugs.debian.org/190387>.

Signed-off-by: Michael Schutte <michi@uiae.at>
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
16 years agoopenvt: Document the -f switch
Michael Schutte [Sun, 22 Jun 2008 08:38:42 +0000 (10:38 +0200)]
openvt: Document the -f switch

-f forces a VT to be opened without checking whether it already is in
use.  The option works as intended, but is not documented anywhere
except for a message printed if a VT is found to be busy.

Signed-off-by: Michael Schutte <michi@uiae.at>
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
16 years ago[keymaps] ruwin_*: Use qwerty-layout.inc
Alexey Gladkov [Sun, 22 Jun 2008 16:41:26 +0000 (20:41 +0400)]
[keymaps] ruwin_*: Use qwerty-layout.inc

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
16 years ago[keymaps] Cleanup of formatting
Alexey Gladkov [Fri, 20 Jun 2008 12:10:27 +0000 (16:10 +0400)]
[keymaps] Cleanup of formatting

All keymaps are changed according to the format: "keycode %3d = ".

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
16 years agounicode_start: Without any arguments utility will only set unicode mode
Alexey Gladkov [Fri, 20 Jun 2008 11:28:27 +0000 (15:28 +0400)]
unicode_start: Without any arguments utility will only set unicode mode

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
16 years agoloadkeys.c: Regenerate source
Alexey Gladkov [Sat, 17 May 2008 23:01:54 +0000 (03:01 +0400)]
loadkeys.c: Regenerate source

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
16 years agoUnderstand the CapsShift modifiers
Michael Schutte [Sat, 5 Apr 2008 10:46:53 +0000 (12:46 +0200)]
Understand the CapsShift modifiers

This patch adds support for the CapsShift_Lock and SCapsShift keysyms to
dumpkeys and loadkeys, which are understood my Linux kernels since 2.6.24.
Thanks to Samuel Thibault <samuel.thibault@ens-lyon.org>.

Signed-off-by: Michael Schutte <m.schutte.jr@gmail.com>
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
16 years agoFix internationalization
Benno Schulenberg [Tue, 8 Apr 2008 05:54:05 +0000 (09:54 +0400)]
Fix internationalization

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
16 years agoRevert "include/*euro.map: Change 'currency' to 'euro' symbol"
Alexey Gladkov [Tue, 8 Apr 2008 18:34:24 +0000 (22:34 +0400)]
Revert "include/*euro.map: Change 'currency' to 'euro' symbol"

This reverts commit 6e6a7f2b2cf0cabf7e1db0ec7d025daa4a94e9f3.

16 years agoProcess a return code of 'write' function
Alexey Gladkov [Sat, 5 Apr 2008 06:30:25 +0000 (10:30 +0400)]
Process a return code of 'write' function

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
16 years agoUse automake
Alexey Gladkov [Tue, 29 Jan 2008 11:51:46 +0000 (14:51 +0300)]
Use automake

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
16 years agoloadunimap should use UNIMAPDIR
Alexey Gladkov [Wed, 2 Apr 2008 14:15:16 +0000 (18:15 +0400)]
loadunimap should use UNIMAPDIR

This fixes bug in commit 5f2bf61426451dbfbfc8ffb17e2fa5cbc5f131c9

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
16 years agoAdd --enable-strip configure option
Alexey Gladkov [Wed, 2 Apr 2008 14:07:37 +0000 (18:07 +0400)]
Add --enable-strip configure option

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
16 years agoPropagates configure options
Charles Clément [Tue, 1 Apr 2008 14:25:57 +0000 (18:25 +0400)]
Propagates configure options

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
16 years agoloadkeys: dump binary keymap
Michel Stempin [Mon, 31 Mar 2008 14:33:33 +0000 (18:33 +0400)]
loadkeys: dump binary keymap

Binary keymap is the keymap format used by Busybox.

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
16 years agoRecognize Ctrl-[ as Escape
Alexey Gladkov [Mon, 31 Mar 2008 11:57:10 +0000 (15:57 +0400)]
Recognize Ctrl-[ as Escape

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
16 years agoAdd qwerty/cz.map keymap
Alexey Gladkov [Mon, 31 Mar 2008 11:47:56 +0000 (15:47 +0400)]
Add qwerty/cz.map keymap

kavol@email.cz writes:
I wanted to use the keymap file /usr/share/keymaps/i386/qwerty/cz.map.gz,
but I have found this to be qwertz so I think it should be placed in
/usr/share/keymaps/i386/qwertz/ (or, much better, converted to qwerty -
I don't understand the masochists who use us-qwerty and cz-qwertz together :-)

http://bugs.gentoo.org/19010

Gentoo notes:
We copy the qwerty/cz.map to qwertz/cz.map and then apply this patch ...
that way we end up with both a qwerty and qwertz version of the cz.map

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
16 years ago[kbd] [PATCH] Updated German translation
Michael Schutte [Mon, 24 Mar 2008 19:34:20 +0000 (20:34 +0100)]
[kbd] [PATCH] Updated German translation

Some translations were grammatically incorrect, many were inconsistent.
Looked over the PO file to find the worst mistakes and uglinesses, added
some hints for translators to the top of the file, and updated the
translation to the current codebase.

Signed-off-by: Michael Schutte <m.schutte.jr@gmail.com>
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
16 years agoUpdate release version
Alexey Gladkov [Mon, 24 Mar 2008 16:46:03 +0000 (19:46 +0300)]
Update release version

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
16 years agoUpdate CHANGES
Alexey Gladkov [Mon, 24 Mar 2008 16:19:31 +0000 (19:19 +0300)]
Update CHANGES

Signed-off-by: Alexey Gladkov <legion@altlinux.org>