Add pancyrillic font
[platform/upstream/kbd.git] / src / clrunimap.c
1 /*
2  * clrunimap.c
3  *
4  * Note: nowadays this kills kernel console output!
5  */
6
7 #include <stdio.h>
8 #include <stdlib.h>
9 #include <fcntl.h>
10 #include <string.h>
11 #include <linux/kd.h>
12 #include "kdmapop.h"
13 #include "getfd.h"
14 #include "nls.h"
15
16 int
17 main(int argc, char *argv[]) {
18         int fd;
19         char *console = NULL;
20
21         setlocale(LC_ALL, "");
22         bindtextdomain(PACKAGE_NAME, LOCALEDIR);
23         textdomain(PACKAGE_NAME);
24
25         if (argc >= 3 && !strcmp(argv[1], "-C"))
26                 console = argv[2];
27
28         fd = getfd(console);
29
30         return loadunimap (fd, NULL, NULL);
31 }