Imported Upstream version 2.0.90
[platform/upstream/kbd.git] / src / totextmode.c
index 1a3c38c..b5035c9 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 #include <fcntl.h>
-#include "getfd.h"
-#include "nls.h"
-#include "version.h"
-#include "kbd_error.h"
+
+#include "libcommon.h"
 
 int main(int argc, char *argv[])
 {
        int fd, num;
 
        set_progname(argv[0]);
-
-       setlocale(LC_ALL, "");
-       bindtextdomain(PACKAGE_NAME, LOCALEDIR);
-       textdomain(PACKAGE_NAME);
+       setuplocale();
 
        if (argc == 2 && !strcmp(argv[1], "-V"))
                print_version_and_exit();